开发者

Problems building summarize gem on Ruby and Win32

I have a working Ruby 1.8.7 installation on Windows XP using the installer provided at http://rubyinstaller.org/, along with the Ruby Dev Kit also found there. Both are working, to the extent I can install gems, including some with native extensions.

I'm trying to use the summarize gem from http://rubygems.org/gems/summarize. When I run gem install summarize, it fails to build the native extensions and I get this error:

Temporarily enhancing PATH to include DevKit...  
Building native extensions.  This could take a while...  
ERROR:  Error installin开发者_如何学JAVAg summarize:  
ERROR: Failed to build gem native extension.

C:/Ruby187/bin/ruby.exe extconf.rb

creating Makefile

make

gcc -I. -I/C/Ruby187/lib/ruby/1.8/i386-mingw32 -I/C/Ruby187/lib/ruby/1.8/i386-mi
ngw32 -I.   -g -O2 -DFD_SETSIZE=256    -c article.c
In file included from article.c:25:0:
libots.h:24:18: fatal error: glib.h: No such file or directory
compilation terminated.

make: *** [article.o] Error 1

Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/summarize-1
.0.3 for inspection.

Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/summarize-1.0.3/ext/summariz
e/gem_make.out

I don't know what to do to correct this problem.


It look like you need to install Glib development package)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜