equus12/RailsOneClick — pull request #1 by void-main (2012-06-28 23:46:03+00:00)
Title: fixed error installing ruby on my mac

While making ruby on my mac, I got the error message like this:

configure: error: in `/tmp/ruby-1.9.3-p125':
configure: error: C compiler cannot create executables
See `config.log' for more details

After googling around, I found that adding the line

export CC=/usr/bin/gcc

worked for me, so I added it to install_ruby.sh.

Besides, I thought when error occurred during installation process, like error installing ruby, it would be better to inform the user and stops the install.