RVM
OS X Lion (10.7)
:; gem update --system
Updating RubyGems
~/.rvm/rubies/ruby-1.8.7-head/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0]
The problem here is that ruby doesn’t like the new llvm-gcc-4.2 compiler.
:; ll /usr/bin/gcc*
lrwxr-xr-x 1 root wheel 12 Jul 25 12:14 /usr/bin/gcc -> llvm-gcc-4.2
-rwxr-xr-x 1 root wheel 113024 May 15 23:37 /usr/bin/gcc-4.2
So, uninstall this ruby and recompile using the old gcc-4.2 compiler.
rvm uninstall 1.8.7 && CC=/usr/bin/gcc-4.2 rvm install 1.8.7
Since llvm is the default compiler, you’re going to see some grumblings in the ruby community, and as someone told me, in installing Ruby Enterprise Edition.
Advertisement
Like this:
Be the first to like this post.
About codeprostitute
These are sordid details of my life as a code prostitute...
I’ve been developing for the web since 1995. I started programming on my Radio Shack MC-10 (TV not included) in 1985 on BASIC (yuk). I got my first solo gig doing FoxPro development in 1992. After that, I did work in mainframe development. I got my first exposure to Unix via SCO Xenix.
I worked at several .com startups, some were acquired by companies including eBay and Google. After some painful crashes, I acquired some clients and started a programming / consulting business. I did work for some interesting companies and had lots of adventures.
Now I work for a (well established) company as a technical architect and am having a blast.
What you’ll find at this blog are some of my adventures with clients and code snippets I found useful.
gona
July 31, 2011 at 11:15 am
awesome, thank you!