twitter bootstrap railsを使ったら職が見つかり彼女も出来て背も3センチ伸びました。
http://ppworks.hatenablog.jp/touch/entry/2012/02/19/033644
を参考に。
Rubyの入れ方を忘れてる。
RVMから
rvm install 1.9.3
すると、
configure: error: in `/Users/shohei/.rvm/src/ruby-1.9.3-p0': configure: error: C compiler cannot create executables See `config.log' for more details
というエラーが出る。
Mac LionがデフォルトのCコンパイラをLLVM-GCCにしてるのが問題っぽいので、export CC=/usr/bin/gcc-4.2を.zshrcに追記。
http://blog.jeffdouglas.com/2011/08/01/ruby-1-9-2-install-errors-with-mac-os-x-lion-and-rvm/
これでもうまくいかない。
そもそも/usr/bin/gcc-4.2がないようである。
homebrewでgccを入れられるみたいなので試してみる。
http://apple.stackexchange.com/questions/38222/how-do-i-install-gcc-via-homebrew
brew install https://raw.github.com/Homebrew/homebrew-dupes/master/gcc.rb
けっきょくosx-gcc-installerというのをつかった。
http://holidayworking.org/memo/2011/12/29/1/
https://github.com/kennethreitz/osx-gcc-installer