![](/img/trans.png)
[英]ruby MS windows gem: win32/daemon: Service_Main thread exited abnormally
[英]Problems building summarize gem on Ruby and Win32
我使用http://rubyinstaller.org/上提供的安裝程序在Windows XP上安裝了Ruby 1.8.7,並在那里找到了Ruby Dev Kit。 兩者都在工作,我可以安裝寶石,包括一些原生擴展。
我正在嘗試使用http://rubygems.org/gems/summarize中的摘要gem。 當我運行gem install summarize
,它無法構建本機擴展,我收到此錯誤:
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing 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
我不知道該怎么做才能解決這個問題。
看起來你需要安裝Glib開發包 )
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.