2013-04-03 81 views
1

這很有趣。我有rdiscount在一個rvm gemset中工作,但是當我嘗試將它添加到另一個時,我會得到ERROR: Failed to build gem native extension.所以我試圖從原始gemset中刪除它,並重新安裝它只是爲了得到相同的錯誤。我不確定發生了什麼事。我試圖用Jekyll和Octopress構建它。我在OS X 10.7.5上。rdiscount」錯誤:無法構建gem本機擴展。「

這裏發生了什麼:

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/[email protected]/gems/rdiscount-2.0.7.1 for inspection. 
Results logged to /Users/rachelnabors/.rvm/gems/[email protected]/gems/rdiscount-2.0.7.1/ext/gem_make.out 

回答

相關問題