您好我正在尝试安装devise gem,当我进行捆绑安装时出现了这个错误:
An error occurred while installing bcrypt-ruby (3.1.2), and Bundler cannot continue.
Make sure that `gem install bcrypt-ruby -v '3.1.2'` succeeds before bundling.
我搜索答案,我得到了这个:
$ sudo rvm get stable
$ rvm list
$ sudo rvm --default use
$ sudo gem install bcrypt-ruby -v '3.1.2'
$ sudo bundle install
$ sudo rvm cleanup all
所以我做了,但现在我认为我做得最差,因为当我尝试用宝石做某事时我得到了这个错误:
<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
from <internal:gem_prelude>:1:in `<compiled>'
这是MAC OS 10.9.1
我很感激一些帮助---谢谢