端口:命令未找到,即使/.bash_profile是'正确'

时间:2013-09-18 20:03:38

标签: macports .bash-profile

我最近安装了Macports,最终在我的MAMP上安装了INTL扩展。我目前正在尝试更新Macports -

sudo port -v selfupdate

返回错误 -

  

sudo:port:command not found

我读过它可能是.bash_profile中的路径。这些是我的道路:

export PATH=$PATH:/opt/local/bin

export MANPATH=$MANPATH:/opt/local/share/man

export INFOPATH=$INFOPATH:/opt/local/share/info

从这里开始,我不确定如何进一步诊断。如果您需要任何其他文件,请告诉我。

2 个答案:

答案 0 :(得分:0)

如果您尚未启动新的shell或source .bash_profile,则PATH的值不会出现在PATH的值中当前的shell。

答案 1 :(得分:0)

您没有使用.bash_profile文件。使用.profile文件是从macport创建的。这将有效。

干杯,