-
-
Save lucascaton/1098549 to your computer and use it in GitHub Desktop.
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 |
I'm seeing this too.
To fix it:
rvm remove ree
export CC=/usr/bin/gcc-4.2
rvm install ree
It works for me :-)
:-)
That workaround did the trick for me as well. Thanks!
I had to add --force
to the rvm reinstall:
rvm remove ree
export CC=gcc-4.2
rvm install ree --force
Not sure why rvm remove ree
didn't remove everything; it completed without any errors.
looks like this is a win. Thanks!
Worked for me too on Lion reinstall :)
Ruby needs to play nice?
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.
if is not Ruby so much as it is llvm Apple's replacement to the tried and true gcc compiler.
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
I've tryed it:
export CC=/usr/bin/gcc-4.2
By it doesn't work for me...