2013-08-03 3 views
5

저는 rbenv를 사용하여 Ruby 2.0.0-p247을 설치하려고하는데, 무엇을해도 같은 오류가 계속 발생합니다.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에 대한 동일한 응답을 줄 알고 여기에 명령 및 응답입니다. 도움?

답변

2

RUBY_CONFIGURE_OPTS 대신 CONFIGURE_OPTS를 사용해야합니다.

brew --prefix openssl 

을 그리고 여기에 내가 맥 OS에 2.0.0-p247를 설치하는 데 사용하는 최종 명령입니다 :

에는 OpenSSL 디렉토리 위치를 가져옵니다 올바른

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

은! 또한, 내 주요 문제는 openssl이 오래되었지만 양조주가 내게 말하지 않고 있다는 것이 었습니다. 그것을 제거하고 다시 설치하십시오. –