ruby 2.0 rails gem install error “cannot load such file — openssl”

前端 未结 13 1329
难免孤独
难免孤独 2020-11-28 22:12

I am using osx 10.8.2 installed ruby 2.0 and.... got this when trying to run \"sudo gem install rails\"

$         


        
13条回答
  •  攒了一身酷
    2020-11-28 22:54

    I had the same problem earlier, tried all of the snippets about and none of them worked out. After looking around for a bit the following worked for me:

    $ rvm remove 2.0.0 # get rid of unsuccessful installation
    $ rvm get head --autolibs=3 # get the latest RVM and build required libs
    $ rvm requirements # just in case, install all other required stuff
    $ rvm install ruby-2.0.0
    $ rvm --default use ruby-2.0.0
    

    What does rvm get head --autolibs=3 do exactly? I'm guess it automatically downloads dependencies, but I was hoping for a clear answer.

提交回复
热议问题