ruby 1.9.2 uninstall error

ww2 wprice.hawaii at gmail.com
Tue Aug 31 12:00:27 PDT 2010


Alin Popa <alin.popa <at> gmail.com> writes:

> I've installed the macport for ruby 1.9.2 (in fact it was upgraded, from 1.9.1
to 1.9.2) and when trying to uninstall it (port uninstall ruby19  <at>
1.9.2-p0_1+nosuffix), I get: --->  Uninstalling ruby19  <at> 1.9.2-p0_1+nosuffix
> Error: port uninstall failed: list element in braces followed by "/cdesc-dig"
instead of space
> 
> 
> sudo port uninstall ruby19  <at> 1.9.2-p0_1+nosuffix
> --->  Uninstalling ruby19  <at> 1.9.2-p0_1+nosuffix
> Error: port uninstall failed: list element in braces followed by "/cdesc-dig"
instead of space
> 
> 
> Not very sure what is happening here and I don't know what I need to do in
order to fix that.
> 
> Could anyone please help me with a hint ?

Disclaimer: this worked for me -- but since it involves manually editing
automatically-generated files, *and* relies on my half-remembered understanding
of Tcl from a long, long time ago, you may completely hose your macports setup.


. first, manually delete the directory and file with the weird brace-containing
name -- for me, they were in /opt/local/share/ri/1.9.1/system/Set/dig\ =\
\{}/cdesc-dig\ =\ \{}.ri 

. next, manually edit the receipt file to remove the offending line:
% cd /opt/local/var/macports/receipts/ruby19/1.9.2-p0_1+nosuffix
% sudo bunzip2 receipt.bz2
% sudo vi receipt
delete the entry in that file that starts with
{{
and contains
{}/cdesc-dig
and ends with a matching
}}
% sudo bzip2 receipt

Once I'd done that, I was able to use port to uninstall ruby19 normally.

Hope that helps.




More information about the macports-users mailing list