Skip to content

Comment on Ruby 1.9.3 via RVM on Mac OSX Lion: Success Story

Comments

This only occurs with Xcode 4.2, while 4.1 has no issue. Reason is Apple went LLVM.

I encountered the issue previously with rbenv [0]. Even if it builds correctly with clang various tests subsequenty fail, although they appear to pass on ruby trunk.

So for now, one should rather install gcc via the installer, which also allows to build older versions of ruby if need be.

[0] https://github.com/sstephenson/ruby-build/pull/87

I managed to install just fine with clang, using

    rvm install 1.9.3 --with-gcc=clang

Same here, no problem. Lion and Xcode 4.2.

Remember that after downloading Xcode form App Store you actually have to INSTALL it and after RUN IT at least once so everything works properly.

Please reread, including comments in the linked github post. 1.9.3 does compile with clang, but ruby's own test suite ('make test' in the ruby build dir) does not pass.

Also, if you had 4.1 then upgraded to 4.2 you may still have 4.1 gcc around.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.