Rails 3.0.7 Ruby 1.9.2 安装debug的记录
发布日期:2021-09-29 20:08:41 浏览次数:3 分类:技术文章

本文共 832 字,大约阅读时间需要 2 分钟。

还是习惯打javaeye上来
一些记录吧
在win下安装Ruby1.9.2的debug出现因为linechache19需要C编译的问题
所以要安装DevKit
在mac下完全没有问题可以顺利安装自己的xcode编译了
详情见:
[url=http://rubyinstaller.org/downloads/]http://rubyinstaller.org/downloads/[/url]
$ gem install linecache19 ERROR:  Error installing linecache19:         The 'linecache19' native gem requires installed build tools. 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的过程简单说一下
下载那个7z的包,然后解压到一个目录,
运行
ruby dk.rb init ruby dk.rb review ruby 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

转载地址:https://blog.csdn.net/horace_lee/article/details/83910468 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:看unicorn时看到一篇写rails部署
下一篇:jQuery插件—【图片文字循环滚动】

发表评论

最新留言

感谢大佬
[***.8.128.20]2024年04月01日 20时47分02秒