Today I was trying use ImageMagick on a 200 page PDF file using the new ghostwrite setup ¹. It started churning away and I started uploading the last images for my Japan 2007 holidays to Flickr. And suddenly the Mac Mini harddisk was full.
Ouch.
I started deleting some stuff here and there, I emptied my trash, I emptied Claudia’s trash, and now we’re back to 6.51 GB of free space.
One of the things I deleted were the MacPorts stuff in `/opt/local`. I had installed precompiled ImageMagick binaries and uninstalled MacPorts port. But the binaries did not disappear from `/opt/local`. I checked who provided the files, and got ImageMagick. I tried to uninstall it again, and the ports system refused, claiming it was already uninstalled. Gah! Away it goes!
Now I’m trying to run my Oddmuse tests. And I’m getting this error:
Can't load '/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/LibXML/Common/Common.bundle' for module XML::LibXML::Common: dlopen(/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/LibXML/Common/Common.bundle, 1): Library not loaded: /opt/local/lib/libiconv.2.dylib Referenced from: /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/LibXML/Common/Common.bundle Reason: Incompatible library version: Common.bundle requires version 6.0.0 or later, but libiconv.2.dylib provides version 5.0.0 at /System/Library/Perl/5.8.6/darwin-thread-multi-2level/DynaLoader.pm line 230. at /Library/Perl/5.8.6/darwin-thread-multi-2level/XML/LibXML.pm line 12
Noooo...
When I start the CPAN shell and run r (”reinstall recommendations”), I get a list of 87 packages and a note saying “164 installed modules have no parseable version number”. Yikes! And when I run the CPAN shell without using sudo, I get all sorts of errors regarding permissions. I searched my own blog and found a note telling me to `o conf make_install_make_command "sudo make"` ² – that’s what the blog is for, hehe!
While surfing the web I came across CPANPLUS... Uh oh! What now? And when I try to install CPANPLUS, I see instructions to run the following in the build directory... Yikes, is this worth it?
$ /usr/bin/perl bin/cpanp-boxed -s selfupdate dependencies $ /usr/bin/perl bin/cpanp-boxed -s selfupdate enabled_features
Bad idea... When all is said and done, and I try to run `perl -MCPANPLUS -e shell` I get the following:
“[ERROR] Could not find the ’cpanp-run-perl’ binary in your paththis may be a problem. Please locate this program and set your ’perlwrapper’ config entry to its path.”
Oh well... Where was I? Right. Reinstalling XML::LibXML::Common because it is linked with a version of libiconv I deleted yesterday... Sigh.
Ok, I `force install XML::LibXML::Common`. Strangely enough it still runs `make install` instead of `sudo make install` even if the option is set correctly. I run `sudo make install` from the build directory (`~/.cpan/build/XML-LibXML-Common-0.13`). Then I install XML::LibXML and finally the tests all pass. Same permission problem, but I ignore it for the moment.
Later I found a solution to the permission problem: Upgrade CPAN itself and when asked for the build command, follow the sudo suggestion. And now I remember having gone through all this on my iBook a while ago. Hah!
#Software