Ruby on Rails是一个比较常用的开发框架。但是当我们没有适合的自动安装条件时应该如何进行Ruby on Rails手动安装呢?那么我们就一起来看看下面介绍的内容。#t#
1.Ruby on Rails手动安装之前首先去 http://rubyforge.org/frs/?group_id=167 找到Ruby Installer下载下来
2.安装 Ruby Installer的时候我是选择默认选项来安装的。
3.分别去
http://rubyforge.org/frs/?group_id=307 去下载rails ;
http://rubyforge.org/projects/activesupport 去下载activesupport;
http://rubyforge.org/projects/activerecord/ 去下载activerecord;
http://rubyforge.org/projects/actionpack 去下载actionpack;
http://rubyforge.org/projects/actionmailer 去下载actionmailer;
http://rubyforge.org/projects/aws 去下载actionwebservice;
http://rubyforge.org/projects/rake 去下载rake;
以上所有下载文件都包括zip和gem;
4.把Ruby on Rails手动安装第三步中下载的所有文件放到一个目录中,比如把它放在了D:\rails中;
5.打开cmd,进入 D:\rails分别执行
D:\rails>gem install activesupport-1.3.1.gem
或者同等效果的D:\rails>gem install activesupport -v 1.3.1
D:\rails>gem install activerecord-1.14.4.gem
D:\rails>gem install actionpack-1.12.5.gem
D:\rails>gem install actionmailer-1.2.5.gem
D:\rails>gem install actionwebservice-1.1.6.gem
D:\rails>gem install rake-0.7.1.gem
D:\rails>gem install rails-1.1.6.gem
到此Ruby on Rails手动安装过程已经结束,可以看看环境:
D:\rails>rails
Usage: D:/rails/ruby/bin/rails /path/to/your/app [options]
Options:
0 0 0