Utilizando: Mountain Lion 10.8.2
, RVM 1.18.15
Teniendo problemas con, aparentemente , openssl
al intentar instalar Ruby 2.0.0 a través de RVM:
$ rvm install 2.0.0
...
Extracting openssl to /Users/meltemi/.rvm/src/openssl-1.0.1c
Configuring openssl in /Users/meltemi/.rvm/src/openssl-1.0.1c.
Error running './Configure darwin64-x86_64-cc -I/Users/meltemi/.rvm/usr/include -L/Users/meltemi/.rvm/usr/lib zlib no-asm no-krb5 --prefix=/Users/meltemi/.rvm/usr no-shared ', please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/openssl/configure.log
Compiling openssl in /Users/meltemi/.rvm/src/openssl-1.0.1c.
Error running 'make', please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/openssl/make.log
asique brew install openssl
para actualizar openssl para 1.0.1e
con la esperanza de que eso ayude, pero aún había más errores (ver "salida larga").
Por lo tanto, cavaron alrededor de Stack Exchange y siguieron libremente la sugerencia de esta publicación cual recomendó rvm get head
(a diferencia de mi típica rvm get stable
) y notado:
$ rvm get head
% Total % Received % Xferd Average Speed Time Time Time Current
...
100 1620k 100 1620k 0 0 275k 0 0:00:05 0:00:05 --:--:-- 479k
Upgrading the RVM installation in /Users/meltemi/.rvm/
RVM PATH line found in /Users/meltemi/.bashrc /Users/meltemi/.zshrc.
RVM sourcing line found in /Users/meltemi/.bash_profile /Users/meltemi/.zshrc.
Installing rvm gem in 1 gemsets ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
Poco interesante siendo cannot load such file -- openssl
.
¿Lo que da?
Salida larga:
después de actualizar openssl a 1.0.1.e a través de homebrew, inténtelo de nuevo, pero por alguna razón, se sigue haciendo referencia a 1.0.1c:
$ rvm reinstall 2.0.0 --with-openssl-dir=/usr/local
Removing /Users/meltemi/.rvm/src/ruby-2.0.0-p0...
Removing /Users/meltemi/.rvm/rubies/ruby-2.0.0-p0...
Fetching openssl-1.0.1c.tar.gz to /Users/meltemi/.rvm/archives
Extracting openssl to /Users/meltemi/.rvm/src/openssl-1.0.1c
Configuring openssl in /Users/meltemi/.rvm/src/openssl-1.0.1c.
Error running './Configure darwin64-x86_64-cc -I/Users/meltemi/.rvm/usr/include -L/Users/meltemi/.rvm/usr/lib zlib no-asm no-krb5 --prefix=/Users/meltemi/.rvm/usr --with-openssl-dir=/usr/local no-shared ', please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/openssl/configure.log
Compiling openssl in /Users/meltemi/.rvm/src/openssl-1.0.1c.
Error running 'make', please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/openssl/make.log
Please note that it's required to reinstall all rubies:
rvm reinstall all --force
Updating openssl certificates
Error running 'update_openssl_certs', please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/openssl.certs.log
Installing Ruby from source to: /Users/meltemi/.rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)...
ruby-2.0.0-p0 - #downloading ruby-2.0.0-p0, this may take a while depending on your connection...
ruby-2.0.0-p0 - #extracting ruby-2.0.0-p0 to /Users/meltemi/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #extracted to /Users/meltemi/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #configuring
ruby-2.0.0-p0 - #compiling
ruby-2.0.0-p0 - #installing
Removing old Rubygems files...
Installing rubygems-2.0.0 for ruby-2.0.0-p0 ...
Error running 'env GEM_PATH=/Users/meltemi/.rvm/gems/ruby-2.0.0-p0:/Users/meltemi/.rvm/gems/ruby-2.0.0-p0@global:/Users/meltemi/.rvm/gems/ruby-2.0.0-p0:/Users/meltemi/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/Users/meltemi/.rvm/gems/ruby-2.0.0-p0 /Users/meltemi/.rvm/rubies/ruby-2.0.0-p0/bin/ruby /Users/meltemi/.rvm/src/rubygems-2.0.0/setup.rb', please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
Installation of rubygems did not complete successfully.
Saving wrappers to '/Users/meltemi/.rvm/bin'.
ruby-2.0.0-p0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-2.0.0-p0 - #importing default gemsets, this may take time ...
Install of ruby-2.0.0-p0 - #complete
Making gemset ruby-2.0.0-p0 pristine.
Error running '' under ,
please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/gemset.pristine.log
Making gemset ruby-2.0.0-p0@global pristine.
Error running '' under ,
please read /Users/meltemi/.rvm/log/ruby-2.0.0-p0/gemset.pristine.log
mountain-lion
ruby
openssl
Meltemi
fuente
fuente
Respuestas:
Tenía el mismo problema. Intente lo siguiente:
fuente
--autolibs=3
bandera hacer? No puedo encontrar alguna documentación en él ...remove 2.0.0
y entoncesrvm get head
(ignorando el--autolibs=3
poco). Requisitos comprobados. DE ACUERDO. entoncesrvm install ruby-2.0.0
. y ... no hay problemas! ¡Funcionó!autolibs
La bandera, por lo que entiendo, le dice a RVM cómo manejar las librerías necesarias adicionales.sudo brew install openssl
Así que esto funcionó para mí:
también tenía
rvm autolibs rvm_pkg
para soporte de readline.fuente