gem install bundler rails
menxu@debian:~/文档/ruby$ bundle -v
ERROR: Gem bundler is not installed, run `gem install bundler` first.menxu@debian:~/文档/ruby$ gem install bundler rails
Successfully installed bundler-1.3.4
Parsing documentation for bundler-1.3.4
Successfully installed rails-3.2.13
Parsing documentation for rails-3.2.13
2 gems installed
menxu@debian:~/文档/ruby$ bundle -v
ERROR: Gem bundler is not installed, run `gem install bundler` first.
在终端里运行 source ~/.rvm/scripts/rvm
然后运行 type rvm | head -n 1
如果提示你
rvm is a function 或者 rvm 是一个函数
那么就代表你安装成功了
执行 rails -v 就会提示你rails 的版本信息
参考 https://rvm.io/rvm/install/