ruby 版本众多,相互兼容性差。在开发中新老项目的维护非常不便,于是有rvm这东东出来了。
ubuntu 下开发环境搭建实录:
1 bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
2 在~/.bashrc 中加入
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
source /home/username/.rvm/scripts/rvm
3 rvm install 1.9.2
4 rvm 1.9.2 --default
5 在你的应用下 bundle install
如果你用netbeans开发的话,可能autodetect platforms 会找到,这时到netbeans安装目录下手动启动一下,即可用autodetect 到。
详细的说明请查看:
http://www.skorks.com/2010/01/using-multiple-rubies-seamlessly-on-the-one-machine-with-rvm/
ubuntu 下开发环境搭建实录:
1 bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
2 在~/.bashrc 中加入
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
source /home/username/.rvm/scripts/rvm
3 rvm install 1.9.2
4 rvm 1.9.2 --default
5 在你的应用下 bundle install
如果你用netbeans开发的话,可能autodetect platforms 会找到,这时到netbeans安装目录下手动启动一下,即可用autodetect 到。
详细的说明请查看:
http://www.skorks.com/2010/01/using-multiple-rubies-seamlessly-on-the-one-machine-with-rvm/
Ubuntu下RVM安装Ruby教程
本文介绍如何在Ubuntu环境下使用RVM安装和管理不同版本的Ruby,解决版本兼容性问题,实现无缝切换,适用于多项目开发场景。
1303

被折叠的 条评论
为什么被折叠?



