redconservatory
redconservatory

Reputation: 21924

Error installing ruby 1.9.3 on Snow Leopard

I tried installing ruby 1.9.3 on Snow Leopard using:

rvm install 1.9.3 --with-gcc=clang

After installing the gcc compiler (I am running xcode 4.2). But I am getting the following make error:

/usr/bin/gcc-4.2 -dynamic -bundle -o ../../.ext/x86_64-darwin10.8.0/tcltklib.bundle stubs.o tcltklib.o -L. -L../.. -L/$
ld: in /usr/local/lib/libgcc_s.1.dylib, missing required architecture x86_64 in file for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [../../.ext/x86_64-darwin10.8.0/tcltklib.bundle] Error 1
make: *** [mkmain.sh] Error 1

Upvotes: 2

Views: 1036

Answers (1)

mpapis
mpapis

Reputation: 53158

/usr/bin/gcc-4.2 is not provided in Xcode 4.2 this file might be left by older installation, try:

rvm install 1.9.3 --with-gcc=clang

Also it could be solved by uninstalling Xcode with:

/Library/Developer/Shared/uninstall-devtools
rm -rf /Library/Developer/

And installing Xcode again (clean).

Upvotes: 2

Related Questions