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 installing with Mac 10.9.3 #7

Open DaniG2k opened 10 years ago

DaniG2k commented 10 years ago

I tried running gem install summarize but am getting the following error message:

Building native extensions.  This could take a while...
ERROR:  Error installing summarize:
    ERROR: Failed to build gem native extension.

    /Users/Dani/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling article.c
article.c:107:37: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
  if ((aWord == NULL) || (0==strlen(aWord)) ||(NULL==aLine)) return;
                                    ^~~~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t   strlen(const char *);
                            ^
article.c:109:68: warning: passing 'const unsigned char *' to parameter of type 'const gchar *' (aka 'const char *') converts between pointers to integer types with different sign [-Wpointer-sign]
  aLine->words = g_list_append (aLine->words, (gpointer) g_strdup (aWord));
                                                                   ^~~~~
/usr/local/Cellar/glib/2.40.0_1/include/glib-2.0/glib/gstrfuncs.h:216:52: note: passing argument to parameter 'str' here
gchar*                g_strdup         (const gchar *str) G_GNUC_MALLOC;
                                                     ^
2 warnings generated.
compiling dictionary.c
dictionary.c:28:10: fatal error: 'libxml/xmlmemory.h' file not found
#include <libxml/xmlmemory.h>
         ^
1 error generated.
make: *** [dictionary.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/Dani/.rvm/gems/ruby-2.1.2/gems/summarize-1.0.3 for inspection.
Results logged to /Users/Dani/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0-static/summarize-1.0.3/gem_make.out

Btw, I am running Ruby 2.1.2. Thanks

rorykoehler commented 9 years ago

@DaniG2k I have the same issue. Did you manage to resolve it?

DaniG2k commented 9 years ago

@rorykoehler no, sorry. I just ended up removing it :disappointed:

rorykoehler commented 9 years ago

Ok thanks. I had better luck with the open text summarizer gem though it also is including the hash keys in it's output rather than just the values but that's easy to fix. https://github.com/deepfryed/ots