Ruby on Rails インストール
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
[[Rubyめも]]
#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-p...
ファイルを展開
# 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/rubyg...
# tar zxvf rubygems-0.9.0.tgz
# cd rubygems-0.9.0
# ruby setup.rb
* Ruby on Rails のインストール [#ka74cf57]
# gem install rails --include-dependencies
うまくいかない場合は
# gem install rails --remote --include-dependencies
* mysql のインストール [#o04bcbb3]
[[MySQL5.0インストール]] を参考にしてインストール
* 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!~
(サーバをデーモンモードで起動するには)
# ruby script/server -d
終了行:
[[Rubyめも]]
#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-p...
ファイルを展開
# 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/rubyg...
# tar zxvf rubygems-0.9.0.tgz
# cd rubygems-0.9.0
# ruby setup.rb
* Ruby on Rails のインストール [#ka74cf57]
# gem install rails --include-dependencies
うまくいかない場合は
# gem install rails --remote --include-dependencies
* mysql のインストール [#o04bcbb3]
[[MySQL5.0インストール]] を参考にしてインストール
* 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!~
(サーバをデーモンモードで起動するには)
# ruby script/server -d
ページ名: