#contents

* Ruby のインストール [#h389e121]
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 のインストール [#x729f2d3]
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 のインストール [#o04bcbb3]
[[こちら:http:///]]を参考にしてインストール

* Ruby on Rails アプリケーション起動テスト [#e40d71be]
適当な場所にディレクトリを作成
 # cd /var
 # mkdir rails_projects
 # cd rails_projects
新規プロジェクトを生成
 # rails demo
 # cd demo
サーバを実行(RailsではプロジェクトごとにWWWサービスを実行する)
 # ruby script/server
http://localhost:3000/ にアクセスできればOK


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS