Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing with Mac 10.9.3 #7

Open
DaniG2k opened this issue Jun 1, 2014 · 3 comments
Open

Error installing with Mac 10.9.3 #7

DaniG2k opened this issue Jun 1, 2014 · 3 comments

Comments

@DaniG2k
Copy link

DaniG2k commented Jun 1, 2014

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
Copy link

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

@DaniG2k
Copy link
Author

DaniG2k commented Mar 19, 2015

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

@rorykoehler
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants