[英]Upgrading ruby installation using macports
Following 以下
sudo port selfupdate
sudo port install ruby19
Where exactly is ruby installed on my mac? 我的mac上安装了ruby的确切位置?
By default macports install stuff in /opt/local
. 默认情况下,macports在/opt/local
安装东西。
Most likely your ruby binary is installed as /opt/local/bin/ruby19
很可能你的ruby二进制文件安装为/opt/local/bin/ruby19
To get rid of 19
suffix install it as: 要摆脱19
后缀,请将其安装为:
sudo port install ruby19+nosuffix
so this will install Ruby as /opt/local/bin/ruby
所以这将安装Ruby作为/opt/local/bin/ruby
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.