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

前端 未结 13 1328
难免孤独
难免孤独 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 23:05

    You have to install OpenSSL first and recompile ruby again:

    RVM:

    rvm pkg install openssl
    rvm reinstall ruby-2.0.0-p0 --with-gcc=gcc-4.7 --with-openssl-dir=$rvm_path/usr
    

提交回复
热议问题