博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

[Ruby] Intall Ruby on Rails

Posted on 2010-02-20 19:07  xuczhang  阅读(209)  评论(0编辑  收藏  举报

I've spent a lot of time on installing the ruby-on-rails by yum. But it doesn't work. Today I tried to download the tar package and intall it, it is successful.
My steps are so easy that there is anything different from the "Get Started" page in ruby-on-rails official page: http://rubyonrails.org/download
1. install ruby(I install the 1.8.6 by yum)
2. install rubygem
download the tar package and extract it, then run "ruby setup.rb
3. install rubyonrails by gem
gem install rails(Here I wait a long time)
4. set up the application and start the server
rails path/to/your/new/application
cd path/to/your/new/application
ruby script/server
The basic step is finished, but there are some useful extensions needed to be installed.
sqlite
1. install the ruby-devel by yum
2. install sqlite-ruby by gem: sudo gem install sqlite3-ruby
3. install sqlite3 by yum if it hasn't been installed