Linux(CentOS)にcompassとrubyをインストール

ちょっと古いサーバーにてcompassを使いたかったのでrubyからインストール。
rubyをyumでインストールしたところバージョン1.8.5でgemがインストールできない(1.8.7以上必須)ので、ソースからインストール。

# yum install ruby
# ruby setup.rb
Rubygems now requires Ruby 1.8.7 or later

rubyのインストール

# wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-2.0.0-p481.tar.gz
# ./configure
# make
# make install
サーバーを再起動
#reboot -n

 rubygemsのインストール

# wget https://github.com/rubygems/rubygems/archive/v2.0.5.tar.gz 
解凍して、
# ruby setup.rb

 compassのインストール

# gem update --system
# gem install compass
 # conmpass -v

で、バージョン情報が表示されれば無事終了。