macports error

While trying to update the installed progs, I got errors like:

Error: Target returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_libiconv/work/libiconv-1.12" && make CC= -f Makefile.devel && make all " returned error 2
Command output: O lib/genaliases.c -o genaliases
make: O: Command not found
make: [lib/aliases.h] Error 127 (ignored)
./genaliases > lib/aliases.gperf 3> 4>
/bin/sh: ./genaliases: No such file or directory
make: *** [lib/aliases.h] Error 127

The reason was that I was using an old macports version, 1.6.0 instead of 1.7.0. A supo port selfupdate fixed the problem. I hope that in the future macports will be upgradable through normal upgrades like gentoo’s portage and debian’s apt-get tools do so we don’t need to “selfupdate” every once in a while…

4 Responses to “macports error”

  1. March 9th, 2009 | 18:10
    Using Safari Safari 528.16 on Mac OS X Mac OS X 10.5.6


    It’s weird. I never had issues with macports (on 2 systems, Leopard and Tiger). The correct way, of you want to have a verbose output is:

    $ sudo port -d selfupdate

    and again for updating your system:

    $ port upgrade outdated

    which package did the brick?

  2. March 9th, 2009 | 20:40
    Using Mozilla Firefox Mozilla Firefox 3.0.6 on Gentoo Linux Gentoo Linux

    Hi there,

    You should be aware of Gentoo Prefix. A direct “competitor” of MacPorts. Quite a few people ditch MacPorts after they learn of this, granted it is not as big as MacPorts is…yet. 😉

  3. March 10th, 2009 | 01:35
    Using Mozilla Firefox Mozilla Firefox 3.0.7 on Mac OS X Mac OS X 10

    @panagiotis: it’s not a specific package problem, all packages had errors like this because macports needed an update. btw verbose is -v, -d is debug which implies verbose too (according to man page)

    @jeremy: I am going to try this as soon as possible! I’ll probably ask more about it on irc 🙂

  4. September 16th, 2009 | 13:38
    Using Safari Safari 531.9 on Mac OS X Mac OS X 10.6

    hmm just checked gentoo prefix. I’d like to use portage over macports but this project seems to have the Gentoo FreeBSD project end… Where it works as a concept but in an every day system it can not be compared to freebsd ports.

    MacPorts is a pretty active project. I’ve met some developers and joined the mailing list for a couple of months. It’s astonishingly active…

Leave a reply