Skip to content

Instantly share code, notes, and snippets.

@jhancock
Created November 21, 2012 04:32
Show Gist options
  • Save jhancock/4123035 to your computer and use it in GitHub Desktop.
Save jhancock/4123035 to your computer and use it in GitHub Desktop.
rvm install 1.9.1 error
mhd@lu:~$ tail /home/mhd/.rvm/log/ruby-1.9.1-p431/make.log
ossl_ssl.c:109:5: warning: (near initialization for ‘ossl_ssl_method_tab[10].func’) [enabled by default]
ossl_ssl.c:110:5: warning: initialization from incompatible pointer type [enabled by default]
ossl_ssl.c:110:5: warning: (near initialization for ‘ossl_ssl_method_tab[11].func’) [enabled by default]
ossl_ssl.c: In function ‘ossl_sslctx_session_remove_cb’:
ossl_ssl.c:407:38: warning: variable ‘ret_obj’ set but not used [-Wunused-but-set-variable]
ossl_ssl.c: In function ‘ossl_ssl_get_cipher’:
ossl_ssl.c:1223:12: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
make[1]: *** [ossl_ssl.o] Error 1
make[1]: Leaving directory `/home/mhd/.rvm/src/ruby-1.9.1-p431/ext/openssl'
make: *** [mkmain.sh] Error 1
mhd@lu:~$
mhd@lu:~$ rvm install 1.9.1
No binary rubies available for: ubuntu/12.04/x86_64/ruby-1.9.1-p431.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Fetching yaml-0.1.4.tar.gz to /home/mhd/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460k 100 460k 0 0 71696 0 0:00:06 0:00:06 --:--:-- 111k
Extracting yaml-0.1.4.tar.gz to /home/mhd/.rvm/src
Prepare yaml in /home/mhd/.rvm/src/yaml-0.1.4.
Configuring yaml in /home/mhd/.rvm/src/yaml-0.1.4.
Compiling yaml in /home/mhd/.rvm/src/yaml-0.1.4.
Installing yaml to /home/mhd/.rvm/usr
Installing Ruby from source to: /home/mhd/.rvm/rubies/ruby-1.9.1-p431, this may take a while depending on your cpu(s)...
ruby-1.9.1-p431 - #downloading ruby-1.9.1-p431, this may take a while depending on your connection...
ruby-1.9.1-p431 - #extracting ruby-1.9.1-p431 to /home/mhd/.rvm/src/ruby-1.9.1-p431
ruby-1.9.1-p431 - #extracted to /home/mhd/.rvm/src/ruby-1.9.1-p431
Applying patch /home/mhd/.rvm/patches/ruby/1.9.1/p431/backport-2404.patch
Applying patch /home/mhd/.rvm/patches/ruby/1.9.1/openssl-1.0.patch
ruby-1.9.1-p431 - #configuring
ruby-1.9.1-p431 - #compiling
Error running 'make', please read /home/mhd/.rvm/log/ruby-1.9.1-p431/make.log
There has been an error while running make. Halting the installation.
Please be aware that you just installed a ruby that requires 2 patches just to be compiled on up to date linux system.
This may have known and unaccounted for security vulnerabilities.
Please consider upgrading to Ruby 1.9.3-327 which will have all of the latest security patches.
mhd@lu:~$
@jhancock
Copy link
Author

fixed problem by running this rvm command first:
rvm --skip-autoreconf pkg install openssl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment