Chinaunix首页 | 论坛 | 博客
  • 博客访问: 461660
  • 博文数量: 117
  • 博客积分: 3195
  • 博客等级: 中校
  • 技术积分: 1156
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-04 01:44
文章分类

全部博文(117)

文章存档

2012年(5)

2011年(5)

2010年(46)

2009年(61)

我的朋友

分类: Python/Ruby

2012-08-12 12:14:25

安装gem的时候遇到
Please update your PATH to include build tools or download the DevKit
from '' and follow the instructions
at ''

原来是因为没有安装devkit

我的ruby是最新的9.3的,so下了DevKit 4.5.2,解压到某目录下,然后:
>ruby dk.rb init  
生成了config.yml
>ruby dk.rb review   
d:/Ruby193
>ruby dk.rb install
完之后检查是否成功了
>gem install rdiscount --platform=ruby
>ruby -rubygems -e "require 'rdiscount'; puts RDiscount.new('**Hello RubyInstaller**').to_html"
出现

Hello RubyInstaller

就可以了
--platform=ruby 这个一定要带上,不然会有问题。。
阅读(2489) | 评论(0) | 转发(0) |
0

上一篇:prawn 装完之后竟然还不能用

下一篇:没有了

给主人留下些什么吧!~~