搭建WINDOWS RoR 开发环境
1. 安装Ruby
1)下载RubyInstaller: http://rubyforge.org/frs/download.php/74298/rubyinstaller-1.9.2-p180.exe
2)运行rubyinstaller-1.9.2-p180.exe,根据向导安装,默认安装到c盘:
C:\Ruby192
并且勾选那两个选项:
Add Ruby executables to your PATH
Associate...
3) 验证: 打开命令行,输入ruby -v:
C:\Documents and Settings\Administrator>ruby -v
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
2. 安装Rubygems
RubyGems 是标准的ruby包管理器,就像 apt-get, emerge, and other OS package managers. 利用它,可以很方便的安装,更新和管理ruby的安装包。
1)下载Rubygems:http://rubyforge.org/frs/download.php/74446/rubygems-1.6.2.zip
2)解压并运行setup.rb
3)验证: 打开命令行,输入gem -v:
C:\Documents and Settings\Administrator>gem -v
1.6.2
3. 安装Rails
通过gem安装: gem install rails
验证:
C:\Documents and Settings\Administrator>rails -v
Rails 3.0.5
4. 安装Radrails2
Update site: http://download.aptana.com/tools/radrails/plugin/install/radrails-bundle
Radrails2 堪称Windows下最好用的Ruby IDE。
1)安装向导: http://www.aptana.com/downloads/start
2)配置,打开"Windows-->Preferences"