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!)
Thanks for this. Stupid MacPorts installer.
ReplyDeleteAhh finally a fix, it would had taken me days to figure that one out, thanks Justin!
ReplyDeleteI had to type
ReplyDeletesudo chmod +x postflight
sudo ./postflight
in order to get it to work
Thanks for the fix, I would never have found it myself!
After following your tip and then installing the first package i got:
ReplyDeleteError: 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!
Thanks for this. This saved me some time!
ReplyDeleteI also had to type the same at Kevin to get it to install on OS X 10.5
Cheers!
This is the best first blog post ever! It finally found a solution to a problem I'd been having for 2 days. Thanks!
ReplyDeleteFor all you Panther 10.3.x users the macports 1.6.0 can still be downloaded from:
ReplyDeletehttp://svn.macports.org/repository/macports/downloads/MacPorts-1.6.0/
you still need the postflight. Thanks a bunch Justin.
--q
And your almost 1 year old post is still working... :-)
ReplyDeleteTHX!