summarize icon indicating copy to clipboard operation
summarize copied to clipboard

Error installing with Mac 10.9.3

Open DaniG2k opened this issue 10 years ago • 3 comments

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

DaniG2k avatar Jun 01 '14 11:06 DaniG2k

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

rorykoehler avatar Mar 19 '15 14:03 rorykoehler

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

DaniG2k avatar Mar 19 '15 14:03 DaniG2k

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

rorykoehler avatar Mar 20 '15 12:03 rorykoehler