Skip to content

Instantly share code, notes, and snippets.

@wesleyzhao
Created October 24, 2011 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesleyzhao/1308191 to your computer and use it in GitHub Desktop.
Save wesleyzhao/1308191 to your computer and use it in GitHub Desktop.
console rvm error
wesley@wesley-T5020:~$ rvm install 1.9.2
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-1.9.2-p180, this may take a while depending on your cpu(s)...
ruby-1.9.2-p180 - #fetching
ruby-1.9.2-p180 - #extracted to /usr/share/ruby-rvm/src/ruby-1.9.2-p180 (already extracted)
ruby-1.9.2-p180 - #configuring
ruby-1.9.2-p180 - #compiling
ERROR: Error running 'make ', please read /usr/share/ruby-rvm/log/ruby-1.9.2-p180/make.log
ERROR: There has been an error while running make. Halting the installation.
...
...
make[1]: Leaving directory `/var/cache/ruby-rvm/src/ruby-1.9.2-p180/ext/mathn/r\
ational'
compiling nkf
make[1]: Entering directory `/var/cache/ruby-rvm/src/ruby-1.9.2-p180/ext/nkf'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/cache/ruby-rvm/src/ruby-1.9.2-p180/ext/nkf'
compiling objspace
make[1]: Entering directory `/var/cache/ruby-rvm/src/ruby-1.9.2-p180/ext/objspa\
ce'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/cache/ruby-rvm/src/ruby-1.9.2-p180/ext/objspac\
e'
compiling openssl
make[1]: Entering directory `/var/cache/ruby-rvm/src/ruby-1.9.2-p180/ext/openss\
l'
gcc -I. -I../../.ext/include/i686-linux -I../.././include -I../.././ext/openssl\
-DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextr\
a -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-m\
issing-field-initializers -Wno-long-long -fPIC -o ossl_ssl.o -c ossl_ssl.c
ossl_ssl.c:110:1: error: ‘SSLv2_method’ undeclared here (not in a function)
ossl_ssl.c:111:1: error: ‘SSLv2_server_method’ undeclared here (not in a functi\
on)
ossl_ssl.c:112:1: error: ‘SSLv2_client_method’ undeclared here (not in a functi\
on)
make[1]: *** [ossl_ssl.o] Error 1
make[1]: Leaving directory `/var/cache/ruby-rvm/src/ruby-1.9.2-p180/ext/openssl\
'
make: *** [mkmain.sh] Error 1
@blackhat06
Copy link

Same error with me , on ubuntu 64 bit !! have any solution plz remind me

@wesleyzhao
Copy link
Author

wesleyzhao commented Dec 26, 2011 via email

@blackhat06
Copy link

Hey i would learn dajngo , would you like to help !! this issue is solved by me

@wesleyzhao
Copy link
Author

you solved the issue above? would love to help with django in any way i can!

@blackhat06
Copy link

okay thanks , i solved above issue you need to install first ruby with rvm version and fix this patch simple

@wesleyzhao
Copy link
Author

wesleyzhao commented Jan 4, 2012 via email

@blackhat06
Copy link

first install all this
sudo apt-get install curl bison build-essential autoconf zlib1g-dev
libssl-dev libxml2-dev libreadline6-dev git-core subversion

then
# rvm package install openssl
#rvm package install readline
#rvm install 1.9.2 -C --with-openssl-dir=$HOME/.rvm/usr,--with-readline-dir=$HOME/.rvm/usr

then finally you will with your ruby yeah enjoy keep learning

@blackhat06
Copy link

or check my blog i also paste there whole , just visit there link is below this have installation for 1.9.2 and 1.8.7 both
http://learnhackstuff.blogspot.com/2011/10/setting-up-your-first-rails-project-on.html

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