Skip to content

Instantly share code, notes, and snippets.

@katsuyoshi
Created June 5, 2012 08:30
Show Gist options
  • Save katsuyoshi/2873637 to your computer and use it in GitHub Desktop.
Save katsuyoshi/2873637 to your computer and use it in GitHub Desktop.
Ruby 1.8.7をMacOSX 10.4 へのインストール
mkdir tmp
cd tmp
curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p358.zip
unzip ruby-1.8.7-p358.zip
cd ruby-1.8.7-p358
./configure
make
sudo make install
@katsuyoshi
Copy link
Author

・ターミナルで
cd
touch .bash_profile
open -e .bash_profile

・テキストエディターが立ち上がるので、下を入力後保存
export PATH=/usr/local/bin:$PATH

・ターミナルを開き直して
ruby -v

1.8.7と出たらOK
ruby 1.8.7 (2012-02-08 patchlevel 358) [powerpc-darwin8.6.0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment