Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Port install fails due to "directory not empty" error

Installing/upgrading ports

Port install fails due to "directory not empty" error

by  Wishdiak  Posted    (Edited  )
I ran into this a while back when attempting to upgrade the GCC 3.4 port. Apparently my FreeBSD server had crashed or dumped core during the previous install, and attempting to upgrade (using portupgrade) threw a "directory not empty" error on a directory that contained no files (/usr/ports/lang/gcc34/work/gcc-3.4-20041112/libstdc++-v3/config/cpu).

I rebooted single-user and ran 'fsck -p', which showed softupdate and other inconsistencies in the file system, but did not correct them. The problem here was that the /usr/lost+found directory was full.

I continued to have this problem for a few months without finding a soultion, so I was unable to do the portupgrade.

I deleted all files and subdirectories in /usr/lost+found, rebooted single user, and ran 'fsck -p'. The filesystem errors were corrected.

I rebooted multi-user and I was able to remove the directory I was having issues with. I was then able to upgrade the GCC 3.4 port (with portupgrade) and have been running happily since.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top