Installing Rails on Unix/Linux

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 http://www.ruby-lang.org/en/.
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 http://rubygems.rubyforge.org, 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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/61746/viewspace-80629/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值