首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >rdiscount“错误:无法构建gem本地扩展。”

rdiscount“错误:无法构建gem本地扩展。”
EN

Stack Overflow用户
提问于 2013-04-04 03:27:56
回答 1查看 2.1K关注 0票数 1

这很有趣。我曾经在一个rvm gemset中工作,但是当我尝试将它添加到另一个中时,我得到了ERROR: Failed to build gem native extension.,所以我尝试从原始gemset中删除它,然后重新安装它,结果却得到了同样的错误。我不知道是怎么回事。我试着在Jekyll和Octopress版本中使用它。我使用的是OS X 10.7.5。

下面是发生的事情:

代码语言:javascript
复制
Using /Users/rachelnabors/.rvm/gems/ruby-1.9.2-p290 with gemset jekyll
Can-Opener:RachelNabors.com rachelnabors$ gem install rdiscount
Building native extensions.  This could take a while...
ERROR:  Error installing rdiscount:
    ERROR: Failed to build gem native extension.

    /Users/rachelnabors/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for random()... yes
checking for srandom()... yes
checking for rand()... yes
checking for srand()... yes
checking size of unsigned long... long
checking size of unsigned int... int
no int with size 4
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/rachelnabors/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
    --with-rdiscount-dir
    --without-rdiscount-dir
    --with-rdiscount-include
    --without-rdiscount-include=${rdiscount-dir}/include
    --with-rdiscount-lib
    --without-rdiscount-lib=${rdiscount-dir}/lib


Gem files will remain installed in /Users/rachelnabors/.rvm/gems/ruby-1.9.2-p290@jekyll/gems/rdiscount-2.0.7.1 for inspection.
Results logged to /Users/rachelnabors/.rvm/gems/ruby-1.9.2-p290@jekyll/gems/rdiscount-2.0.7.1/ext/gem_make.out
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-04-04 05:13:14

同样的失败:https://github.com/rtomayko/rdiscount/issues/48

不支持Ruby 1.9.2。另请参阅:https://github.com/rtomayko/rdiscount/wiki/Support-Matrix

1.9.3对你来说应该很好!

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

https://stackoverflow.com/questions/15796274

复制
相关文章

相似问题

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