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

前端 未结 2 1021
小蘑菇
小蘑菇 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: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.

提交回复
热议问题