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
Add Current Time Before Log Message
Naming Conventions for Boolean Attributes
How to Export a Rails Model to JSON Schema
How to Break Out of a Map/Collect and Return Whatever Has Been Collected Up to That Point
How to Create a Rails 3 Route That Will Match All Requests and Direct to One Resource/Page
Getting Remove_Entry_Secure Error While Using Ruby Application
Argument Out of Range Rails 4 and Bootstrap3-Datetimepicker-Rails
How to Properly Test Cancan Abilities with Rspec
Is There a Definitive Reference Document for Ruby Syntax
How to Install and Use Slim Template Engine with Middleman
Ruby Method, Proc, and Block Confusion
Initializing Instance Variable as an Array - Ruby
Heroku: Pg::Connectionbad: Could Not Connect to Server: Connection Refused
Rbenv and Bundler: "Bad Interpreter: No Such File or Directory"