新手问题 Ruby 2.0 如何使用最新的 OpenSSL 版本?

stephen · February 26, 2013 · Last by sevk replied at February 26, 2013 · 2991 hits

rvm 如何使用最新的 openssl 版本? 我是用 brew 安装 openssl 1.0.1e 的! 因为升级了 ruby2.0,而 openssl1.0.1d 出错!

记得安装

brew install openssl
brew install curl-ca-bundle
 4730  cp /usr/local/Cellar/curl-ca-bundle/1.87/share/ca-bundle.crt /usr/local/etc/openssl/cert.pem

上面的不是必须的。

rvm pkg install openssl
rvm install 2.0.0 \ 
    --with-openssl-dir=$HOME/.rvm/usr --verify-downloads 1
rvm use 2.0.0

估计--with-openssl-dir=brew --prefix openssl"一样可以。

我觉得关键是--with-openssl-dir的路径,只要正确就好。

我没指定路径,一样可以。

rvm pkg install openssl
rvm install 2.0.0 
rvm use 2.0.0 --default

You need to Sign in before reply, if you don't have an account, please Sign up first.