SyntaxHighlighter

2012年3月18日日曜日

OSX 10.6.8(Snow Leopard) でRVM環境+Ruby1.9.2のインストール

RVMいれたいなー。

てなわけで、下記を参考にインストール開始

参照
Mac OS XでRVM環境のセッティング(依存ライブラリ周り)


$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
$ rvm pkg install ree_dependencies
結果、下記のエラーが出ていたけど、ncursesなので、無視して続行します。
Installing ncurses to /Users/xxx/.rvm/usr
Error running 'make install', please read /Users/xxx/.rvm/log/ncurses/make.install.log
んで下記を実行
$ rvm install 1.9.2
...
Installing yaml to /Users/xxxxx/.rvm/usr
The provided compiler '/usr/bin/gcc' is LLVM based, it is not yet fully supported by ruby and gems, please read `rvm requirements`.
あら、トラブルさん、こんにちは。今日はお早いお付きですね。 ってなわけでググると、Xcode4.2入れたらおかしくなるよと。Xcodeの環境も壊したくなかったので下記を参考にGCC入れ替えましょう!

参照 Mac OS X LionにXcode 4.2を入れてrvmによりRuby 1.8.xをinstallするとgem installで落ちる問題をXcode 4.2を残したまま解決

・・・って、homebrewなんて入ってない。MacPortsは入ってるけどなんか新しいみたいなので そっちも入れてみます。公式を参考に下記で。
$ /usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
はいったよ。
ln: dir: File exists
Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link gcc'
==> Summary
/usr/local/Cellar/gcc/4.6.2: 239 files, 28M, built in 41.1 minutes
エラーがでたけど、指示通り
# brew link gcc
でオッケーかな? 再挑戦!
$ rvm install 1.9.2
...
Install of ruby-1.9.2-p318 - #complete
おっけー☆フフッ

0 件のコメント:

コメントを投稿