rbenv的流行果然是有原因的( rbenv is much greater than RVM in some cituation)

访问量: 2024

前天晚上在一台centos 5.8上安装ruby,  rvm 完全不行(没有git 模块,它跟我抱怨。我手动安装了GIT后,它还是跟我抱怨。我无视抱怨,继续按照ruby 1.9.3时,出错。还是因为GIT。我了歌曲。)我用了4个小时。 结果无奈之下转向rbenv.  rbenv 很快搞定。(我第一次读github上的文档。。按照它的描述,15分钟搞定,没遇到任何问题):

(唯一的不足是 rbenv没能跟passenger 搭档跑RAILS。 出现  cannot load such file -- rubygems/path_support 错误。等喘口气的时候再查吧)

下面是安装过程的记录(见 https://github.com/sstephenson/rbenv/ )

222 2013-03-26 21:30:58: git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
223 2013-03-26 21:31:18:echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
224 2013-03-26 21:31:36: echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
225 2013-03-26 21:31:55:exec $SHELL -l
226 2013-03-26 21:32:49:git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
227 2013-03-26 21:33:40:rbenv install 1.9.3-p327
228 2013-03-26 21:50:37:rbenv rehash
229 2013-03-26 22:02:10:rbenv global 1.9.3-p327

rubygem:
scp .... rubygem 1.8.x
unzip ... cd ... ruby setup.rb

upload shared folder...

cap deploy. ...

$ gem install bundler
$ bundle

yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-develyum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel

yum install mysql-devel

订阅/RSS Feed

Subscribe

分类/category