[MacPorts] #30275: ruby: ruby gem installation causes segfaults
MacPorts
noreply at macports.org
Thu Jul 21 06:14:54 PDT 2011
#30275: ruby: ruby gem installation causes segfaults
---------------------------------+------------------------------------------
Reporter: dj_mook@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.99
Keywords: lion | Port: ruby
---------------------------------+------------------------------------------
If you install the ruby macport on lion and then install rubygems from
source, any attempt to install a gem results in a segfault.
{{{
sudo gem install sinatra
ruby-1.8.7-p352/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0]
}}}
According to http://www.frymanet.com/2011/07/rvm-ruby-1-8-7-and-osx-lion/
ruby does not work well with the default llvm compiler in lion.
Using the solution from the article I patched the Portfile to set
CC=/usr/bin/gcc-4.2 as a configure argument.
After rebuilding ruby with the new portfile and then installing rubygems
from source, I can now install gems without problem.
Macports version 2.0 rc1.
--
Ticket URL: <https://trac.macports.org/ticket/30275>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list