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

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

    Looks like there might be some info missing here - for me, this was due to a brew install of gcc. gcc was in /usr/bin, but not gcc-4.2. So I just did the following:

    $ cd /usr/bin
    $ sudo ln -s gcc gcc-4.2
    

    which creates a link, gcc-4.2, which the gem is looking for that goes back to gcc.

    Hope that helps.

提交回复
热议问题