2013-08-03 11 views
5

Sto cercando di installare Ruby 2.0.0-p247 con rbenv e continuo a ricevere lo stesso errore, indipendentemente da ciò che faccio. Ecco il comando e la risposta:Installare Ruby 2.0.0-p247 con rbenv

$ 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? 

So che questo problema è stato fatto altrove, ma queste soluzioni ancora mi danno la stessa risposta per quanto riguarda OpenSSL. Aiuto?

risposta

2

È necessario utilizzare CONFIGURE_OPTS anziché RUBY_CONFIGURE_OPTS.

ottenere la posizione di directory OpenSSL:

brew --prefix openssl 

E qui è il comando finale che uso per installare 2.0.0-P247 su MacOS:

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

corretta! Inoltre, il mio problema principale era che openssl era scaduto, ma Brew non mi stava dicendo. disinstallare e reinstallare risolto. –

Problemi correlati