ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Installing Rails on Unix/Linux

Installing Rails on Unix/Linux

原创 Linux操作系统 作者:stone4102 时间:2019-05-04 07:39:06 0 删除 编辑
You’ll need to have Ruby 1.8.4(or later) and RubyGems installed in order
to install Rails.

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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2003-10-25

  • 博文量
    50
  • 访问量
    36576