ROR安装手记

首先在http://rubyonrails.org/download上下载Ruby

Ruby
Source: Compile it yourself
Windows installer: Ruby, popular extensions, editor

exe安装文件进行安装,之后cmd输入ruby -v
C:\>ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]



显示版本表示成功

然后再安装rails,一般在ruby目录下cmd输入gem install rails进行远程安装
但是由于网络的缘故,试了N次装不上,只有进行本地安装

在http://rubyforge.org/frs/?group_id=307上下载
rails-2.2.2.gem
rails-2.2.2.zip
这2个文件并放入ruby目录下,然后cmd到ruby目录下,再次输入gem install rails
过一会提示安装成功
D:\Ruby>gem install rails
Successfully installed activesupport-2.2.2
Successfully installed activerecord-2.2.2
Successfully installed actionpack-2.2.2
Successfully installed actionmailer-2.2.2
Successfully installed activeresource-2.2.2
Successfully installed rails-2.2.2
6 gems installed
Installing ri documentation for activesupport-2.2.2...
Installing ri documentation for activerecord-2.2.2...
Installing ri documentation for actionpack-2.2.2...
Installing ri documentation for actionmailer-2.2.2...
Installing ri documentation for activeresource-2.2.2...
Installing RDoc documentation for activesupport-2.2.2...
Installing RDoc documentation for activerecord-2.2.2...
Installing RDoc documentation for actionpack-2.2.2...
Installing RDoc documentation for actionmailer-2.2.2...
Installing RDoc documentation for activeresource-2.2.2...

cmd输入rails -v显示版本

C:\>rails -v
Rails 2.3.2


这样ruby和rails都安装成功!

你可能感兴趣的:(c,windows,Ruby,Rails,ActiveRecord)