Lion: Problem with Rvm Installing Rubies - Problem Related to Openssl

Lion: Problem with RVM installing rubies - problem related to openssl

For anyone who should ever have this problem on Lion ... it's some Problem with duplicate headers that come from openssl. You can simply install openssl locally and tell rvm to use that local openssl version.

You can compile opnessl by hand with the prefix /usr/local or simply let rvm do the job:

rvm pkg install openssl

And then tell rvm to link against that version during ruby install:

rvm install 1.9.2 --with-openssl-dir=/path/to/your/home/.rvm/usr

In case you already have a local installation replace with:

rvm install 1.9.2 --with-openssl-dir=/usr/local

DO NOT try what can be read often:

rvm install 1.9.2 -C --with-openssl-dir=/path/to/your/home/.rvm/usr

That does not work.

rvm can't compile ruby: fails openssl check

Upon closer review, I realized I had an openssl directory (containing version 3) in /usr/local/include and that was on the include path ahead of the directory I specfied with the --with-openssl-dir option.

I fixed it by renaming /usr/local/include/openssl to /usr/local/include/openssl_hideme; after that, the extension compiler found the version I wanted.

I would have guessed that includes on the command line would be put in front of the path, but lesson learned.

RVM issue with Mountain Lion

Check this answer https://stackoverflow.com/a/10540282/497756

the main point is:

rvm pkg install openssl

and then:

rvm reinstall 1.9.3

Can't install Ruby 1.9.3 via rvm in OS X Lion even with --with-gcc=clang

This should solve it:

rvm get head
rvm install 1.9.3 --autolibs=4

Can't install Ruby Enterprise Edition with RVM on OSX Lion

I was able to duplicate your error, just now. This solved it for me:

$ rvm remove ree

$ export CC=/usr/bin/gcc-4.2

$ rvm install --force ree



Related Topics



Leave a reply



Submit