realpath failed -- error uninstalling ports
Joshua Root
jmr at macports.org
Sun Oct 11 01:32:54 PDT 2009
On 2009-10-11 13:10, Dexter Douglas wrote:
> Hello,
>
> I added the debugging statement that you suggested. Here is the output.
>
> $ sudo port -f uninstall inactive
> Password:
> ---> Uninstalling coreutils @7.4_0
> getting realpath for /opt/local/var/macports/software/coreutils/7.4_0/opt/local/bin/g[
> Error: port uninstall failed: realpath failed: No such file or directory
>
> $port installed shows
> coreutils @7.4_0
> coreutils @7.5_0
> coreutils @7.6_0 (active)
>
> However, I looked in /opt/local/var/macports/software/coreutils. I only see 7.5_0 and 7.6_0 directories.
>
> I have found similar problems with some other ports. For example,
>
> $port installed name:zlib
> zlib @1.2.3_2
> zlib @1.2.3_3 (active)
>
> but /opt/local/var/macports/software/zlib only contains 1.2.3_3.
>
> How do I clean these up?
OK, looks like your previous uninstall attempts must have died partway
through because of the bug. You can clean up by removing the receipt
directory corresponding to the missing software/ subdir, e.g.
rm -rf /opt/local/var/macports/receipts/coreutils/7.4_0
- Josh
More information about the macports-users
mailing list