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

前端 未结 12 1781
庸人自扰
庸人自扰 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 20:51

    The following steps worked for me.

    First ensure openssl is installed by running brew install openssl, then reinstall the ruby version using rvm, but this time around, you have to pass the with-opt-dir flag pointing to the location where openssl was installed on your machine (use command which openssl to find this location).

    rvm install 1.9.3-p392 --with-openssl-dir=/usr/local/opt/openssl
    

提交回复
热议问题