Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下列的
sudo port selfupdate sudo port install ruby19
ruby 究竟安装在我的 Mac 上的哪个位置?
默认情况下,macports 将东西安装在/opt/local.
/opt/local
很可能您的 ruby 二进制文件安装为/opt/local/bin/ruby19
/opt/local/bin/ruby19
要摆脱19后缀,请将其安装为:
19
sudo port install ruby19+nosuffix
所以这会将Ruby安装为/opt/local/bin/ruby
/opt/local/bin/ruby