Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lion ate my RVM and now I can't install Ruby

I recently upgraded to Lion and everything was fine. Even rebooted the machine a few time. Then over the weekend, Rails was gone! All of my gemsets were gone. I swear I don't know what happened. It WAS working just fine.

After looking closer, RVM itself was gone.

So, I reinstall RVM and try to install Ruby 1.9.2 and I get this error log:

[2011-08-08 14:30:41]  ./configure --prefix="/Users/cbmeeks/.rvm/usr"  
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for gcc... /usr/bin/gcc-4.2
checking whether the C compiler works... no
configure: error: in `/Users/cbmeeks/.rvm/src/yaml-0.1.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

It appears that gcc is gone? I'd prefer not to just start randomly reinstalling everything since all was working before.

Any ideas?

Thanks.

like image 473
cbmeeks Avatar asked Aug 08 '11 18:08

cbmeeks


2 Answers

After you install Lion, you have to re-install Xcode/Developer tools. It is available from the app store.

http://itunes.apple.com/us/app/id448457090?mt=12

like image 147
Mike L Avatar answered Oct 24 '22 12:10

Mike L


If you don't want to do a full XCode install, you might want to check out this project: https://github.com/kennethreitz/osx-gcc-installer

like image 43
ezkl Avatar answered Oct 24 '22 13:10

ezkl