Installing MacPorts, but not working :-S

Associate
Joined
20 May 2007
Posts
441
Heya

I just downloaded macports.dmg and ran the .pkg file in it and tried to run

sudo port -v selfupdate

But got the following message

sudo: port: command not found

Anyone got any ideas how to fix this issue, the .pkg file said there were no errors during the install

Gaunt
 
See
http://guide.macports.org/#installing.macports

"Changes to ~/.profile do not take effect until a new terminal session is opened. Type env in the terminal to verify the current environment settings. Example output for the env command is shown below."

Try a restart -- the port executable isn't in your PATH, basically.
I think I had a similar issue when I installed it.
 
thanks for the help, i tried a restart but no luck, i thinks its got something to do with the lack of xcode, so trying to install that as we speak
 
According to the guide, it seems you just need to prepend /opt/local/bin and /opt/local/sbin to your PATH (see the url above). It says add it your .bash_profile if that exists, or if not create the .profile (with nano or your command line editor of choice).
 
Back
Top Bottom