1. Many modern distributions come with Ruby installed. Bring up your
favorite shell and type ruby -v. If Ruby responds, and is at least version
1.8.4, skip to step 3.
2. You’ll probably be able to find a prepackaged version of Ruby for your
distribution. If not, Ruby is simple to install from source.
a) Download ruby-1.8.4.tar.gz from .
b) Untar the distribution, and enter the top-level directory.
c) Do the usual open-source build.
root@localhost> tar xzf ruby-1.8.4.tar.gz
root@localhost> cd ruby-1.8.4
ruby-1.8.4> ./configure
ruby-1.8.4> make
ruby-1.8.4> make test
ruby-1.8.4> sudo make install
3. Install RubyGems. Go to , and follow the
download link. Once you have the file locally, enter the following in
your shell window.
root@localhost> tar xzf rubygems-0.8.11.tar.gz
root@localhost> cd rubygems-0.8.11
rubygems-0.8.11> sudo ruby setup.rb
4. We’ll now use RubyGems to install Rails. Still in the shell, issue the
following command.
dave> sudo gem install rails --include-dependencies
And (one last time), congratulations! You’re now on Rails.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/61746/viewspace-80629/,如需转载,请注明出处,否则将追究法律责任。