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

前端 未结 2 1029
小蘑菇
小蘑菇 2021-02-11 00:25

I\'m desparate, fuddling with the following problem for two(!!) days now w/o a solution.

After an update to Lion I wanted to install additional rubies using the most rec

相关标签:
2条回答
  • 2021-02-11 00:31

    I just went through this tutorial and it worked without any problems: Getting Rails Up: http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/

    0 讨论(0)
  • 2021-02-11 00:39

    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.

    0 讨论(0)
提交回复
热议问题