ssoper / summarize

A Ruby C wrapper for Open Text Summarizer
http://intridea.com/2010/12/3/summarize-a-ruby-c-binding-for-open-text-summarizer
205 stars 14 forks source link

Error when installing gem #6

Open syedpenrose opened 10 years ago

syedpenrose commented 10 years ago

Hello, I'm trying to install gem on windows 8, with rails configured. When trying to install via bundler, I'm getting the following error: $ 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:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb

creating Makefile

make generating summarize-i386-mingw32.def compiling 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:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/summarize-1.0.3 for inspection. Results logged to c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/summarize-1.0.3/ext/summarize/gem_make.out

Any suggestions?

Thank you, Sid

syedpenrose commented 10 years ago

I do have Dev Kit installed, if that helps.

karlcoelho commented 10 years ago

you need to install the glib c library.

if you have homebrew, all you need to do is this:

brew install glib
syedpenrose commented 10 years ago

I'm actually on Windows. Would I need Dev or Compiled version of glib? I tried with Dev and put the path in windows Environment Variables. Doesn't seems to take it.

Thank you,