由于是在windows下面,进行ruby的入门,在安装的时候碰到的问题的记录。
首先搜集了Ruby on Rails开发IDE的比较,Aptana Studio,RubyMine,NetBeans等,个人觉得RubyMine比较合适,但是确实如网上文章所说,有点略卡。
其次是安装
在windows下安装或者升级或者建立Ruby on Rails项目时,gem会碰到如下的错误
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
这是因为没有安装DevKit的缘故。
使用RubyInstaller并不能愉快的安装DevKit,我们需要用RailsInstaller。可以从这个链接得到 :RailsInstaller
先可以用
ruby -v
可以用于查看ruby的版本,检测ruby是否安装成功。
安装之后可以安装rdicount来检测DevKit是否安装成功
> gem install rdiscount --platform=ruby
Fetching: rdiscount-1.6.8.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
参考:
http://rubyer.me/blog/134/
http://rubyer.me/blog/1509/