RSS

[BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0]

25 Jul

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
 

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.
1 Comment

Posted by on July 25, 2011 in Lion, OS X, Ruby

 

Tags:

One Response to [BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0]

  1. gona

    July 31, 2011 at 11:15 am

    awesome, thank you!

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.