转自:http://www.linuxweblog.com/ruby-on-rails-install
- Install ruby rpms via yum:
# yum install ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs
- Download and install rubygems from rubygems.org.
Change to the extracted directory and run:# ruby setup.rb
- Now use gem to install rails. It will ask about installing dependencies. Answer "Y" or just hit return.
# gem install rails
- Test it by creating a skeleton rails app in your home directory:
$ cd ~ $ rails testapp
- Start the WEBrick server.
$ cd ~/testapp $ ruby script/server
The WEBrick server should now be started and listening to the default port - 3000 .
Point your browser to:http://localhost:3000/
You should see a welcome page with some additional getting started info.
http://rubygems.org/pages/download