我最近安装了MacPort,并向alias port=/opt/lcoal/bin/port
添加了~/.bash_profile
,因为不知道为什么,但是如果我输入port
,shell会继续说cmd not found
无论如何,现在命令端口可以返回以下内容:
MacPorts 2.5.2
Entering shell mode... ("help" for help, "quit" to quit)
[Users/zachary] >
但是,我的最终目标是使用以下命令安装Boost:
sudo port install boost
但是此命令返回
sudo:port: command not found
sudo
是否需要额外分配其correspondent commands?