RVM issue with Mountain Lion

ぐ巨炮叔叔 提交于 2020-01-02 08:10:53

问题


I can install any Ruby versions on a Mac running Mountain Lion

I have made sure Brew Doctor is all good.

When I run ie rvm intall 1.9.3-head I get the following.

From git://github.com/ruby/ruby
 * branch            ruby_1_9_3 -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
ruby-1.9.3-head - #autoreconf
ruby-1.9.3-head - #configuring 
ruby-1.9.3-head - #compiling 
Error running 'make', please read /Users/lee/.rvm/log/ruby-1.9.3-head/make.log
There has been an error while running make. Halting the installation.
lee$ mate /Users/lee/.rvm/log/ruby-1.9.3-head/make.log

This is the make.log http://pastie.org/private/wt48jlhlng9tgbdgqap8q

Please can anyone advise. It looks like MD5 is the issue ?? Im not expert at command line so any help would be fantastic.

Thanks in advance.


回答1:


Check this answer https://stackoverflow.com/a/10540282/497756

the main point is:

rvm pkg install openssl

and then:

rvm reinstall 1.9.3



回答2:


Try the following:

  • Update Xcode, get the version that will work with Lion and run the command again.

  • Install using:

    rvm install 1.9.3 --with-gcc=clang

  • Install GCC 4.2 and try:

    rvm install 1.9.3 --with-gcc=gcc-4.2

Hope one of these will work.

来源:https://stackoverflow.com/questions/12117626/rvm-issue-with-mountain-lion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!