RVM and ruby SSLv2 support

Hi,

I am using RVM to install a project.
But I cant’t figure out how to compile ruby 1.9.2 with openssl SSLv2
support.

So far I tried:

sudo rvm pkg install openssl --verify-downloads 1 – --enable-opensslv2
sudo rvm pkg install openssl --verify-downloads 1 --enable-opensslv2
sudo rvm pkg install openssl --verify-downloads 1 -C --enable-opensslv2

And the everytime:

sudo rvm install 1.9.2 --with-openssl-dir=$rvm_path/usr

but I still get an error:
undefined symbol: SSLv2_method -
(…)/.rvm/rubies/ruby-1.9.2-p320/ruby/libs/1.9.1/x86_64-linux/openssl.so

Tnx for support in advance.

Andraz Brodnik wrote in post #1081643:

I am using RVM to install a project.
But I cant’t figure out how to compile ruby 1.9.2 with openssl SSLv2
support.

You didn’t say what platform you are building on.

Maybe you don’t have the openssl dev libraries installed for your
platform. e.g. under Ubuntu:

apt-get install libssl-dev

and try again.

When installing the openssl with rvm isn’t the openssl compiled and
linux distro independent?

I am using Ubuntu.

The installation of ‘libssl-dev’ didn’t help.

rvm install shows message about the openssl

is the openssl installed by the rvm necessary ?

On Mon, Oct 29, 2012 at 5:21 PM, Andraz Brodnik
[email protected]wrote:


Silence is gold.

twitter: @areverie
wikipedia: AleiPhoenix
blog: weblog.areverie.org
wiki: wiki.areverie.org

No.

I removed the whole ~/.rvm/usr.

Recompiled ruby and now it works :smiley:

Tnx

Subject: Re: RVM and ruby SSLv2 support
Date: Mon 29 Oct 12 06:21:45PM +0900

Quoting Andraz Brodnik ([email protected]):

When installing the openssl with rvm isn’t the openssl compiled and
linux distro independent?

I am using Ubuntu.

The installation of ‘libssl-dev’ didn’t help.

Did you also perhaps install a copy of openssl from source?

It appears you are picking up a different version of libssl.so when
executing your script, wrt the one that was used for compiling the
Ruby extensions.

Do

find / -name libssl.so

(be patient - the command can take a long time to run)

How many copies are found? Maybe something under /usr/local? While it
is possible to handle multiple copies of openssl on a machine, this is
certainly not an easy task…

Carlo

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs