[英]How to upgrade to ruby 1.9.2
mac os x如何升级到ruby 1.9.2
Perhaps not the answer you're looking for in the short term, but I highly recommend looking into Ruby Version Manager . 也许不是你在短期内寻找的答案,但我强烈建议你研究一下Ruby Version Manager 。 It makes running concurrent versions of Ruby a breeze by switching out the entire environment for you (by means of updating your environment variables, generally).
通过为您切换整个环境(通常更新环境变量),它可以轻松地运行Ruby的并发版本。 Different versions, different gems per version, etc.
不同版本,每个版本不同的宝石等。
I think that the best option is to use Homebrew. 我认为最好的选择是使用Homebrew。 The installation is simple:
安装很简单:
brew install ruby
By the way, RVM does not support LLVM based gcc! 顺便说一句,RVM不支持基于LLVM的gcc!
PS Homebrew is great choice because it has clear and good way to install things (without ruining your system), you can use it to install various "packages" like git, ghc, emacs etc. PS Homebrew是很好的选择,因为它有清晰和好的方式安装东西(不破坏你的系统),你可以用它来安装各种“包”,如git,ghc,emacs等。
PPS Don't forget to path your new ruby, something like: PPS不要忘记路径你的新红宝石,如:
export PATH="$PATH:/usr/local/opt/ruby/bin"]
PPPS If you would like to use rvm, try this link: http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ PPPS如果您想使用rvm,请尝试以下链接: http : //www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
RVM main site doesn't install properly on OS X Lion. RVM主站点无法在OS X Lion上正确安装。 The instructions are incorrect, the error messages it spews are incorrect (refer to non-existent log files, etc).
说明不正确,它喷出的错误消息不正确(请参阅不存在的日志文件等)。
Route that (eventually) worked for me: (最终)为我工作的路线:
NB -- downloading will take approx 5 mins; NB - 下载大约需要5分钟; "installing" will take 30-45 mins, because everything has to be compiled.
“安装”将需要30-45分钟,因为一切都必须编译。 There is apparently no "normal" way of installing Ruby :(.
显然没有安装Ruby的“正常”方式:(。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.