Fix issues with Ruby installation (via rvm) in Ubuntu 15.10 > stdout.in Ievgen Kuzminov IT blog

Fix issues with Ruby installation (via rvm) in Ubuntu 15.10

Nov 11, 2015, 10:18:35 AM

ruby Got an error while trying to install Ruby via RVM and RBENV on Ubuntu 15.10.

compiling ossl_ssl.c
ossl_ssl.c:141:27: error: ‘SSLv3_method’ undeclared here (not in a function)
     OSSL_SSL_METHOD_ENTRY(SSLv3),
...
Makefile:293: recipe for target 'ossl_ssl.o' failed
make[2]: *** [ossl_ssl.o] Error 1
...
exts.mk:201: recipe for target 'ext/openssl/all' failed
make[1]: *** [ext/openssl/all] Error 2
...
make: *** [build-ext] Error 2

Solution #1

Apply patch during installation

curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt | rbenv install --patch 2.2.3

Solution #2

rvm pkg install openssl  
rvm install 2.2.2 --with-openssl-dir=$HOME/.rvm/usr
rvm --default use 2.2.2 

Fix certificates issue for solution #2

My code with HTTP requests to HTTPS sites returned me an error like this
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (I think that solution above is the reason).

And this another fix helped

rmdir ~/.rvm/usr/ssl/certs
$ ln -s /etc/ssl/certs ~/.rvm/usr/ssl
comments powered by Disqus
Ievgen
Kuzminov "iJackUA"
Web Team Lead
at MobiDev (Kharkiv, Ukraine)
Code in Ruby and Elixir, but still love PHP. Explore ES6 and Vue.js. Explore databases, use Ubuntu and MacOS, think about IT people and management

Notes


Linkify - jQuery plugin for finding URLs in plain-text and converting them to HTML links. It works with all valid URLs and email addresses



Remodal - flat, responsive, lightweight, fast, easy customizable modal window jquery plugin with declarative state notation and hash tracking



Giving a try to Ubuntu 14.04 - so far it's ok. More stable and refined. But it seem to have problems with Cinnamon 2 installation. Oh fine... will wait for Linux MInt 17 to use on my Work machine



Updated blog. Mostly "under-the-hood" changes according to latest Yii2 state, some CSS and server optimisations. In case of any issues please feel free to comment here