Undefined symbol: SSLv2_method when trying to start a thin web server

I installed OpenSSL with rvm ( rvm pkg install openssl ) and then did rvm reinstall 1.9.3 --with-openssl-dir=$rvm_path/usr

When I try to start a thin web server, I get the following error:

/home/ubuntu/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/x86_64-linux/openssl.so: undefined symbol: SSLv2_method - /home/ubuntu/.rvm/rubies/ruby -1.9.3-p327 / lib / ruby ​​/ 1.9.1 / x86_64-linux / openssl.so (LoadError)

This works on Ubuntu 12.04, and I read that Ubuntu 12 builds OpenSSL without SSLv2 support. However, here it refers to the RVM package - does RVM do the same? Is there any known solution to this problem?

+4
source share
1 answer

As you say, Ubuntu builds openssl without SSLv2 support: Ubuntu and undefined for SSLv2_method

For people reading this, your options (with great difficulty):

(1) install rvm version 1.14.7, where opensl pkg includes openssl version 0.9.8 and includes SSLv2 support by default.

 rvm implode # Completely destroy your rvm installation curl -L https://get.rvm.io | bash -s -- --version 1.14.7 

Install the necessary packages, recompile your ruby, and it should work!

(2) (This gives you added security): compile your own openssl from source, set it to support SSLv2, and then recompile your ruby ​​with --with-openssl-dir, indicating where you installed openssl.

(3) Fix the thin one so that it no longer needs the SSLv2_method symbol, then send the transfer request to GitHub

+4
source

Source: https://habr.com/ru/post/1445830/


All Articles