Rails 3.0.7 Ruby 1.9.2 安装debug的记录
还是习惯打javaeye上来一些记录吧
在win下安装Ruby1.9.2的debug出现因为linechache19需要C编译的问题
所以要安装DevKit
在mac下完全没有问题可以顺利安装自己的xcode编译了
详情见:
http://rubyinstaller.org/downloads/
$ gem install linecache19ERROR:Error installing linecache19: The 'linecache19' native gem requires installed build tools.Please update your PATH to include build tools or download the DevKitfrom 'http://rubyinstaller.org/downloads' and follow the instructionsat 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
安装Devkit的过程简单说一下
下载那个7z的包,然后解压到一个目录,
运行
ruby dk.rb initruby dk.rb reviewruby dk.rb install
顺利的话,可以运行如下测试
gem install rdiscount --platform=ruby
看到提示使用了Devkit
然后,运行
ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html"
看到gem可以用,说明DevKit安装正常了。
测试环境win7 64
页:
[1]