I'm brand new to Ruby and Ruby on Rails, and am currently going through Michael Hartl's Ruby on Rails tutorial. Or at least I was before trying to load install some open source code led me down a dark journey. I somehow managed to delete any version of Ruby from my computer and RVM won't let me reinstall it using rvm install 1.9.3 (or using the Jewelry Box). I also tried uninstalling Xcode and installing osx-gcc-installer per other instructions I found to no avail.
Added context: running ruby -v makes the system hang.
Here's the error:
ruby-1.9.3-p194 - #configuring
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include -L/usr/local/rvm/usr/lib ./configure --enable-shared -- disable-install-doc --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p194', please read /usr/local/rvm/log/ruby-1.9.3-p194/configure.log
There has been an error while running configure. Halting the installation.
Here's the relevant part of the log:
checking build system type... x86_64-apple-darwin12.2.0
checking host system type... x86_64-apple-darwin12.2.0
checking target system type... x86_64-apple-darwin12.2.0
checking whether the C compiler works... no
configure: error: in `/usr/local/rvm/src/ruby-1.9.3-p194':
configure: error: C compiler cannot create executables
See `config.log' for more details
Any help would be greatly appreciated!