rvm on ubuntu 11.10
2012-03-02 - updated to use ruby 1.9.3 and official instead of system rvm.
When trying to install ruby 1.9.2 using rvm I got a nasty suprise:
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 function) ossl_ssl.c:112:1: error: ‘SSLv2_client_method’ undeclared here (not in a function) 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
The solution
# install rvm bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) # make sure we have $rvm_path source /etc/profile # don't use ubuntus openssl rvm pkg install openssl rvm install 1.9.3-p125 --with-openssl-dir=$rvm_path/usr
Jonas Wagner
Thanks for the post, this really helped me.
Comment by Hafiz — 10/30/11 8:01 AM | # - re
Who da man? You da man. Thanks mate, saved me hours ( new to ruby and new to ubuntu! )
Comment by Varun Vohra — 11/1/11 7:47 PM | # - re
Thank you!
Comment by Justin — 11/3/11 2:20 AM | # - re
Thanks for the blog post.
Just an fyi, I had to use => rvm pkg install openssl, i just updated to rvm head so it might have been a recent change.
Comment by Greg — 11/11/11 3:42 AM | # - re
Thanks a lot!!!
I couldn't understand why everyone was still installing rvm via git/curl when there was a package.
Comment by Braden — 11/27/11 1:17 AM | # - re
Thanks a lot!
It solved problem for me.
Comment by Sergey — 12/6/11 3:16 PM | # - re
you are a super star my friend tnx alot. Was facing this issue while trying to enable tls with kamailio on ubuntu 11.10 :)... this comment will help other kamailio users to find ur post :D
Comment by Mike — 12/27/11 8:07 AM | # - re
When you write "make sure we have $rvm_path", how should this value be defined?
Comment by Joseph Turian — 2/21/12 5:01 AM | # - re
you are awesome, thanks man!
Comment by Brian Yang — 4/20/12 7:23 AM | # - re
Hey thanks! I wonder why it is that the ubuntu packaged version of openssl doesn't work.
Seems to me like this should be fixed in the Ubuntu openssl package. I wonder how one would go about doing that.
Thanks though, this is good for now. ;)
Comment by Steve — 5/7/12 5:40 AM | # - re