Openssl 使用rbenv安装Ruby 2.0.0-p247

Openssl 使用rbenv安装Ruby 2.0.0-p247,openssl,rbenv,ruby-2.0,Openssl,Rbenv,Ruby 2.0,我正在尝试用rbenv安装Ruby 2.0.0-p247,无论我做什么,都会收到相同的错误。以下是命令和响应: $ RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.1e rbenv install 2.0.0-p247 Downloading ruby-2.0.0-p247.tar.gz... -> http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p2

我正在尝试用rbenv安装Ruby 2.0.0-p247,无论我做什么,都会收到相同的错误。以下是命令和响应:

$ RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.1e rbenv install 2.0.0-p247
Downloading ruby-2.0.0-p247.tar.gz...
-> http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz
Installing ruby-2.0.0-p247...

BUILD FAILED

Inspect or clean up the working tree at /var/folders/v1/f8v8hqk12cdcdjwp660mz8fm0000gp/T/ruby-build.20130803134459.46575
Results logged to /var/folders/v1/f8v8hqk12cdcdjwp660mz8fm0000gp/T/ruby-build.20130803134459.46575.log

Last 10 log lines:
installing default gems:      /Users/scottmagdalein1/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0 (build_info, cache, doc, gems, specifications)
                              bigdecimal 1.2.0
                              io-console 0.4.2
                              json 1.7.7
                              minitest 4.3.2
                              psych 2.0.0
                              rake 0.9.6
                              rdoc 4.0.0
                              test-unit 2.0.0.0
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?

我知道有人在别处问过这个问题,但这些解决方案仍然对OpenSSL给出了相同的回答。帮助?

您应该使用CONFIGURE\u OPTS而不是RUBY\u CONFIGURE\u OPTS

获取openssl目录位置:

brew --prefix openssl
下面是我在MacOS上安装2.0.0-p247的最后一个命令:

CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl" rbenv install 2.0.0-p247

对的另外,我的主要问题是openssl已经过时,但brew没有告诉我。卸载并重新安装它。