4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac(Lion)上でRVMを使用しRubyをインストール

Posted at

普通にやっただけではエラーが出ていまい、インストールできない。

rvm install 1.9.3

Xcodeをバージョンアップすることで今までのgccとは別のものになるのが原因らしい。
そのため今までのgccをインストールする。

パッケージ管理にはHomeBrewと使用しているが、標準のフォーミュラには必要なのが含まれていないので下記からダウンロード。

Formulaを該当の箇所にコピー。

cp apple-gcc42.rb /usr/local/Library/Formula/

gccをインストール。

brew install apple-gcc42

ビルドに使用するgccを設定しつつインストール。

CC=/usr/local/bin/gcc-4.2 rvm install 1.9.3
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?