Ruby and “You must recompile Ruby with OpenSSL support or change the sources in your Gemfile”

前端 未结 12 1753
庸人自扰
庸人自扰 2020-12-07 20:31

Using rvm I upgraded my ruby to 1.9.3-p392, also added 2.0.0, anytime I try to use this version when I run my bundle command I get this error.

Could not load         


        
12条回答
  •  死守一世寂寞
    2020-12-07 21:15

    In my case:

    Problem: After installing ruby-2.3.1, I ran the command bundle install and then the error occurred.

    Solution:

    • I first installed OpenSSL on my machine. $ brew install openssl
    • And then, reinstalled the ruby version I require (2.3.1) with the openssl.

      $ rvm reinstall 2.3.1 --with-openssl-dir=/usr/local/opt/openssl

    And this solved my problem!

提交回复
热议问题