1

これは面白い。ある rvm gemset 内で rdiscount が動作していましたが、それを別の gemset に追加しよERROR: Failed to build gem native extension.うとすると、元の gemset から削除して再インストールしようとしましたが、同じエラーが発生しました。何が起こっているのかわかりません。Jekyll および Octopress ビルドで使用しようとしています。私はOS X 10.7.5を使用しています。

何が起こるかは次のとおりです。

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
4

1 に答える 1

7

同じ失敗: https://github.com/rtomayko/rdiscount/issues/48

Ruby 1.9.2 はサポートされていません。参照: https://github.com/rtomayko/rdiscount/wiki/Support-Matrix

1.9.3 で問題ないはずです!

于 2013-04-03T21:13:13.830 に答える