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

后端 未结 10 495
面向向阳花
面向向阳花 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:44

    I'm using RVM & I kept having this issue whenever installing gems with native extensions (bcrypt-ruby, bson-ext, json, eventmachine, nokogiri, linecache19, etc.)

    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    Only way I could finally get things working was to uninstall then re-install ruby.

    rvm remove 1.9.2

    rvm install 1.9.2

    Thanks to tip from @doublebee here: https://github.com/flori/json/issues/78#issuecomment-1499920

提交回复
热议问题