26th Dec, 2007

Postflight script failed

I came across this error when I installed MacPorts in my system.
<date> <hostname> : Install failed: The following install step failed: run postflight script for <myPackageName>

I did the following to resolve this issue,

echo $PATH
Make sure the path begins with the MacPorts’ paths like the following
/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin

If not add the following to your ~/.profile or ~/.bash_profile (The shell may use either of this.)

export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export DISPLAY=:0.0

Now save and reinstall the things(Changes to ~/.profile do not take effect on the current shell session. So close and open a new terminal). Everything will go well.
This is done so that if you have utilities or libraries from both MacPorts and OS X’s standard install, the MacPorts libraries will be run instead of the ones provided by Apple.

Responses

thanks!
some more info on this (quote http://guide.macports.org/#installing.macports (details of the postflight script)):

“The DISPLAY environment variable is set to “:0″ if and only if:
It’s a Tiger or earlier platform, since on Leopard connections to the X11 server are handled in a much cleaner fashion by the ‘launchd(8)’ daemon directly;”

Leave a response

Your response:

Categories and Tags

Advertising