Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't install rails on OSX 10.7.5

Whenever I run

    sudo gem install rails

I get the following output:

   ERROR:  Loading command: install (LoadError)
cannot load such file -- openssl
ERROR:  While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass

RVM version: rvm 1.18.14 and Ruby is 2.0.0p0

like image 530
mikhail90 Avatar asked Dec 07 '22 09:12

mikhail90


2 Answers

you need to reinstall your rubies:

rvm get head --autolibs=3
rvm pkg remove
rvm reinstall all --force

the new autolibs supporrt will take care of updating dependencies and including them in ruby

like image 147
mpapis Avatar answered Dec 28 '22 21:12

mpapis


Do you have Homebrew installed on your system? If so, try

brew install openssl

in the command line.

like image 29
Lawrence Ryerson Davis IV Avatar answered Dec 28 '22 22:12

Lawrence Ryerson Davis IV