Why do I get a bcrypt-ruby gem install error?

后端 未结 10 498
面向向阳花
面向向阳花 2020-12-06 09:07

Getting an error when trying to install the gem devise, the installation is stopping on the gem bcrypt-ruby:

$ gem install bcrypt-ruby
Error installing bcry         


        
10条回答
  •  不知归路
    2020-12-06 09:39

    Well, it works with Ruby 1.9.2 under RVM on MacOS 10.6.7:

    $ ruby -v
    ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]
    
    $ gem install bcrypt-ruby
    Fetching: bcrypt-ruby-2.1.4.gem (100%)
    Building native extensions.  This could take a while...
    Successfully installed bcrypt-ruby-2.1.4
    1 gem installed
    Installing ri documentation for bcrypt-ruby-2.1.4...
    Installing RDoc documentation for bcrypt-ruby-2.1.4...
    

    Try rvm notes and see if it says you need to install anything.

提交回复
热议问题