RVM issue with Mountain Lion

2019-05-15 16:06发布

问题:

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.



标签: ruby rvm