首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在windows 7中安装rdiscount时出错

在windows 7中安装rdiscount时出错
EN

Stack Overflow用户
提问于 2013-03-06 00:48:26
回答 2查看 578关注 0票数 1

我正在尝试安装rdiscount gem,但遇到以下错误。

如何在windows7中安装rdiscount?

代码语言:javascript
复制
C:\>gem install rdiscount --platform=ruby Temporarily enhancing PATH to include DevKit... Building native extensions.  This could take a while... ERROR:  Error installing rdiscount:
        ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe extconf.rb checking for random()... no checking for srandom()... no checking for rand()... yes checking for srand()... yes checking size of unsigned long... 4 checking size of unsigned int... 4 creating Makefile


                 from c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../i
                 from c:/Ruby193/include/ruby-1.9.1/ruby/win32.h:40,
                 from c:/Ruby193/include/ruby-1.9.1/ruby/defines.h:223,
                 from c:/Ruby193/include/ruby-1.9.1/ruby/ruby.h:67,
                 from c:/Ruby193/include/ruby-1.9.1/ruby.h:32,
                 from rdiscount.c:3: c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:229:23 c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:238:23 c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:238:23 c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/windef.h:241:24 rdiscount.c: In function 'rb_rdiscount_to_html': rdiscount.c:19:5: warning: implicit declaration of function 'rb_rdiscount__get_f rdiscount.c:19:5: warning: ISO C90 forbids mixed declarations and code rdiscount.c:32:5: warning: ISO C90 forbids mixed declarations and code rdiscount.c: In function 'rb_rdiscount_toc_content': rdiscount.c:68:5: warning: ISO C90 forbids mixed declarations and code make: *** [rdiscount.o] Error 1


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/rdiscount Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/rdiscount-2.0.7.1/ext/gem_

C:\>
EN

回答 2

Stack Overflow用户

发布于 2013-03-09 11:25:40

我仍然不能让它工作,所以必须使用旧版本。

代码语言:javascript
复制
gem install rdiscount -v=1.6.8 --platform=ruby

2013年3月15日编辑

旧宝石给了我其他错误。

我更改为二手

代码语言:javascript
复制
gem install RedCloth -v=4.2.9 –platform=ruby
票数 1
EN

Stack Overflow用户

发布于 2013-04-29 00:22:24

尝试更新你的Ruby和/或RDiscount。

最新的RDiscount (2.0.7.3)应该可以在Ruby1.9.3或更高版本上运行。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15229483

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档