Lion and RVM gcc LLVM error

297 views
Skip to first unread message

Jason

unread,
Mar 16, 2012, 1:53:45 PM3/16/12
to rvm (Ruby Version Manager)
It seems there are some problems with Lion, gcc and rvm.

Command:

rvm install ruby-1.9.2-p290 --with-gcc=clang --with-openssl-dir=/opt/
local/bin;

Error:

The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet
fully supported by ruby and gems, please read `rvm requirements`.


I found this post on stack overflow to try to help however I'm
wondering if things have been fixed and you can now use Xcode 4.2?

I tried the three solutions suggested on stack overflow but no luck so
far:

http://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues



Thanks

Jason

unread,
Mar 16, 2012, 2:16:30 PM3/16/12
to rvm (Ruby Version Manager)
Thanks to mpapis on irc: I now realize this --with-gcc=clang flag only
works for ruby 1.9.3 and I am trying to use 1.9.2


Thanks
> http://stackoverflow.com/questions/8032824/cant-install-ruby-under-li...
>
> Thanks

Wade Williams

unread,
Mar 16, 2012, 5:06:20 PM3/16/12
to rubyversi...@googlegroups.com
I've been fighting this same issue over the past day or so.

I was trying to install 1.9.3.

I tried the flag. I tried installing the gcc package. I tried rvm get latest.
I reinstalled Xcode.

However, what eventually worked was "rvm get head". I realize that's not typically recommended, but it was apparently needed in this case.

You're trying to install 1.9.2 I know, but it may work for you too.

Wade

> --
> Please visit http://rvm.beginrescueend.com/ for documentation on rvm.
> Please visit https://www.pivotaltracker.com/projects/26822 to see what is being worked on currently.
>
> You received this message because you are subscribed to the Google
> Groups "rvm (Ruby Version Manager)" group.
> To post to this group, send email to rubyversi...@googlegroups.com
> To unsubscribe from this group, send email to
> rubyversionmana...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/rubyversionmanager?hl=en

mpapis

unread,
Mar 16, 2012, 10:19:49 PM3/16/12
to rvm (Ruby Version Manager)
Wade rvm get latest is deprecated, not always downloading latest
version and definitively not using stable code - which you can get
with:

rvm get stable

stable = latest + patches

with the exception that latest can happen to be outdated sometimes and
stable is the best thing to do



as for 1.9.3-p125 we are testing some patches for ruby in `rvm get
head` so to get best support you either try:

rvm get head
rvm reinstall 1.9.3-p125

but i have already seen this not sufficient and still breaking you
could try 1.9.3-head instead(which has some more patches for clang as
I heard):

rvm get stable #or: rvm get head
rvm reinstall 1.9.3-head

and in the end the ultimate fix is to not use clang:

# install osx-gcc-installer
rvm get stable #or: rvm get head
rvm install 1.9.3

RVM should automatically detect gcc-4.2 which is the real GCC (not
LLVM) and use it for compilation ... in case it breaks and make.log
still says `CC = clang` you can use:

CC=gcc-4.2 rvm install 1.9.3
> > Please visithttps://www.pivotaltracker.com/projects/26822to see what is being worked on currently.
Reply all
Reply to author
Forward
0 new messages