#contents * Ruby のインストール [#a18b207f] Rubyがインストールされていれば削除する # su # yum remove ruby Ruby最新版をダウンロード # cd /usr/src/ # wget ftp://core.ring.gr.jp/pub/lang/ruby/ruby-1.8.6-p111.tar.gz ファイルを展開 # tar zxvf ruby-1.8.6-p111.tar.gz # cd ruby-1.8.6-p111 インストール # ./configure # make # make test test succeeded # make install * RubyGems のインストール [#n4f8950b] RubyGemsはRubyのパッケージ管理システム。コマンド名はgem。 # wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz # tar zxvf rubygems-0.9.0.tgz # cd rubygems-0.9.0 # ruby setup.rb # gem install rails --include-dependencies * mysql のインストール [#ma3b47b0] [[こちら:http:///]]を参考にしてインストール * Ruby on Rails アプリケーション起動テスト [#y8da5fa4] 適当な場所にディレクトリを作成 # cd /var # mkdir rails_projects # cd rails_projects 新規プロジェクトを生成 # rails demo # cd demo サーバを実行(RailsではプロジェクトごとにWWWサービスを実行する) # ruby script/server http://localhost:3000/ にアクセスできればOK