Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created July 22, 2011 00:14
Show Gist options
  • Save lucascaton/1098549 to your computer and use it in GitHub Desktop.
Save lucascaton/1098549 to your computer and use it in GitHub Desktop.
Segmentation fault in (RVM) REE installation
It looks like the source is already configured.
Skipping configure script...
/usr/bin/gcc -dynamiclib system_allocator.c -install_name @rpath/libsystem_allocator.dylib -o libsystem_allocator.dylib
mkdir -p .ext/common
make PREINCFLAGS='-I/opt/local/include' PRELIBS='-L/opt/local/lib -Wl,-rpath,/Users/caton/.rvm/rubies/ree-1.8.7-2011.03/lib -L/Users/caton/.rvm/rubies/ree-1.8.7-2011.03/lib -lsystem_allocator'
./ext/purelib.rb:2: [BUG] Segmentation fault
@maletor
Copy link

maletor commented Aug 17, 2011

Ruby needs to play nice?

@fleas
Copy link

fleas commented Feb 6, 2012

It's helpful to install gcc using mac ports. I know a lot of people don't like mac ports but if you wanna avoid all the issues with llvm just use --with-gcc and/or --with-cxx as in the example below.

First install gcc:
( There are other non-apple version and newer gcc versions in ports if you prefer)


Then just pass rvm configure options

of course you can use --with-gcc=clang in a lot of cases.

@fleas
Copy link

fleas commented Feb 6, 2012

@maletor

if is not Ruby so much as it is llvm Apple's replacement to the tried and true gcc compiler.

@arangamani
Copy link

A combination of the above discussed options worked for me.

sudo port -v install apple-gcc42

and then

export CC=/opt/local/bin/gcc-apple-4.2

then finally

rvm reinstall ree-1.8.7-2011.02 --force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment