2011-09-02 10 views
7

Quiero instalar Ruby Entreprise Edition via rvm en Ubuntu. estoy ejecutando el siguiente:"rvm install ree" falla en ubuntu: cómo obtener el requisito de permisos de pase openssl y zlib pass?

$ rvm install ree --with-readline-dir=/home/ubuntu/.rvm/usr --with-iconv-dir=/home/ubuntu/.rvm/usr --with-zlib-dir=/home/ubuntu/.rvm/usr --with-openssl-dir=/home/ubuntu/.rvm/usr 

Sin embargo, se produce un error con el siguiente error:

Installing Ruby Enterprise Edition from source to: /home/ubuntu/.rvm/rubies/ree-1.8.7-2011.03 
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03) 
ree-1.8.7-2011.03 - #extracting ruby-enterprise-1.8.7-2011.03 to /home/ubuntu/.rvm/src/ree-1.8.7-2011.03 
ree-1.8.7-2011.03 - #installing 
ERROR: Error running './installer -a /home/ubuntu/.rvm/rubies/ree-1.8.7-2011.03 --dont-install-useful-gems ', please read /home/ubuntu/.rvm/log/ree-1.8.7-2011.03/install.log 
ERROR: There has been an error while trying to run the ree installer. Halting the installation. 

El archivo /home/ubuntu/.rvm/log/ree-1.8.7-2011.03 /install.log dice lo siguiente:

* C compiler... found at /usr/bin/gcc 
* C++ compiler... found at /usr/bin/g++ 
* The 'make' tool... found at /usr/bin/make 
* The 'patch' tool... found at /usr/bin/patch 
* Zlib development headers... found 
* OpenSSL development headers... not found 
* GNU Readline development headers... not found 

Some required software is not installed. 
But don't worry, this installer will tell you how to install them. 
Press Enter to continue, or Ctrl-C to abort. 
-------------------------------------------- 
Installation instructions for required software 

* To install OpenSSL development headers: 
    Please download it from http://www.openssl.org/ 

* To install GNU Readline development headers: 
    Please download it from http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html 

Sin embargo, yo he openssl, readline y zlib-devel instalado tanto como paquete de RVM y a través de apt-get en el sistema.

$ rvm package install ree_dependencies 

Por favor ayuda!

Respuesta

6

Si utiliza RVM versión 1.9.0,

$ RVM paquete de instalación ree_dependencies ERROR: argumento de línea de comando no reconocido: 'paquete' (ver: 'el uso RVM')

Usando

$ RVM paquete instalar ree_dependencies

funcionará

5

Puede variar ligeramente dependiendo de la versión de Ubuntu que esté ejecutando, pero un apt-get install libssl-dev libreadline-dev debe tener instalados esos encabezados.

+0

agregue lo siguiente al comienzo del comando anterior: sudo – jschorr

+0

Esto ayuda, pero mi problema era que la creación de scripts ree estaba fallando. Y eso es porque rvm estaba en modo jruby. –

5

En realidad, el problema era que estaba bajo "rvm jruby-1.6.2" cuando ejecutaba la instalación. Parece que cuando estás bajo jruby algunos scripts se arruinan. Así que este es mi solución:

rvm use system 
rvm package install ree_dependencies 
rvm install ree --with-readline-dir=/home/ubuntu/.rvm/usr \ 
       --with-iconv-dir=/home/ubuntu/.rvm/usr  \ 
       --with-zlib-dir=/home/ubuntu/.rvm/usr  \ 
       --with-openssl-dir=/home/ubuntu/.rvm/usr 
Cuestiones relacionadas