16 February 2008

Installing MacPorts 1.6.0 From the Package Installer

If (like yours truly), you try to install MacPorts 1.6.0 from the pkg installer and the postflight script hangs or fails to complete, the following commands should do the trick (why this information isn't on front page of the MacPorts project is beyond me):

sudo curl -O http://svn.macports.org/repository/macports/branches/release_1_6/base/portmgr/dmg/postflight
chmod -x postflight
./postflight

(What an exciting way to start a new blog!)

8 comments:

  1. Thanks for this. Stupid MacPorts installer.

    ReplyDelete
  2. Ahh finally a fix, it would had taken me days to figure that one out, thanks Justin!

    ReplyDelete
  3. I had to type
    sudo chmod +x postflight
    sudo ./postflight
    in order to get it to work
    Thanks for the fix, I would never have found it myself!

    ReplyDelete
  4. After following your tip and then installing the first package i got:
    Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_bzip2/work/bzip2-1.0.5" && make all PREFIX="/opt/local" " returned error 127
    Command output: sh: make: command not found

    Had to install XCode which brings "make" with it. Now it works great, thanks!

    ReplyDelete
  5. Thanks for this. This saved me some time!

    I also had to type the same at Kevin to get it to install on OS X 10.5

    Cheers!

    ReplyDelete
  6. This is the best first blog post ever! It finally found a solution to a problem I'd been having for 2 days. Thanks!

    ReplyDelete
  7. For all you Panther 10.3.x users the macports 1.6.0 can still be downloaded from:
    http://svn.macports.org/repository/macports/downloads/MacPorts-1.6.0/

    you still need the postflight. Thanks a bunch Justin.

    --q

    ReplyDelete
  8. And your almost 1 year old post is still working... :-)

    THX!

    ReplyDelete