コマンドで見るシリーズ。~ RubyのインストールからRailsプロジェクト作成まで ~
Ruby
cd /usr/local/src
wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.4.tar.gz
tar zxf ruby-1.8.4.tar.gz
cd ruby-1.8.4
./configure --prefix=/usr/local/ruby184
make
make test
make install
RubyGems
cd /usr/local/src
wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
tar zxf rubygems-0.8.11.tgz
cd rubygems-0.8.11
/usr/local/ruby184/bin/ruby setup.rb
Rails
/usr/local/ruby184/bin/gem install rails --include-dependencies
Ruby postgres driver
export POSTGRES_LIB=/usr/local/pgsql/lib
export POSTGRES_INCLUDE=/usr/local/pgsql/include
/usr/local/ruby184/bin/gem install postgres
Project
rails -d postgresql hoge