0
According to the macports installation docs, the installer will make the necessary changes to your bash profile to allow the shell to find the new port application once installed. I found this didn’t happen when installing macports, so of course the environment couldn’t find port :
1 2 | secondhalf-lm:~ clacy$ sudo port - v selfupdate sudo : port: command not found |
It’s easy to get around this just by extending the path in your .bash_profile – The following should do the job :
add the following to /.bash_history
1 2 3 | export PATH=$PATH: /opt/local/bin export MANPATH=$MANPATH: /opt/local/share/man export INFOPATH=$INFOPATH: /opt/local/share/info |
and then re-source the file :
1 2 3 4 5 | secondhalf-lm:~ clacy$ source .bash_profile secondhalf-lm:~ clacy$ sudo port - v selfupdate Synchronizing local ports tree from rsync : //rsync .macports.org /release/ports/ receiving file list ... file has vanished: "/ports/perl/p5-csp/.Portfile.sPwLRn" ( in release) done |
Voir en ligne : Source
DATE 20 Déc 2008