Getting Ruby 1.8.7 installed on Mountain Lion (10.8)

后端 未结 3 1232
夕颜
夕颜 2020-12-25 07:56

I\'m having a lot of trouble getting Ruby 1.8.7 installed on my clean install of Mountain Lion. I\'ve looked around on Stack Overflow and don\'t see anything that specifical

3条回答
  •  伪装坚强ぢ
    2020-12-25 08:45

    Just to follow up to Paul's post. I'm running OSX 10.8.2, had 1.9.3 install without issues, but 1.8.7-p370 also failed. I symlinked gcc-4.2:

    sudo ln -s /usr/local/bin/gcc-4.2 /usr/bin/gcc-4.2
    

    ...successfully ran:

    brew install tcl
    

    ...but tk failed:

    brewk install tk
    

    If you're in the same spot, this command did the trick:

    CC=/usr/local/bin/gcc-4.2 rvm reinstall 1.8.7 --without-tk
    

提交回复
热议问题