天天看點

rails 安裝出錯

gem install bundler rails      

[email protected]:~/文檔/ruby$ bundle -v

ERROR: Gem bundler is not installed, run `gem install bundler` first.

[email protected]:~/文檔/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

[email protected]:~/文檔/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/