Skip to content

Instantly share code, notes, and snippets.

@ababich
Created March 8, 2011 11:51
Show Gist options
  • Save ababich/860186 to your computer and use it in GitHub Desktop.
Save ababich/860186 to your computer and use it in GitHub Desktop.
$ git clone git://github.com/aurelian/ruby-stemmer.git
$ cd ruby-stemmer/
$ ruby -v
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10]
$ rake compile
(in /Volumes/Sites/ruby-stemmer)
rake-compiler must be configured first to enable cross-compilation
mkdir -p tmp/x86_64-darwin10/stemmer_native/1.9.2
cd tmp/x86_64-darwin10/stemmer_native/1.9.2
/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/bin/ruby -I. ../../../../ext/lingua/extconf.rb
......
cc -Iinclude -fPIC -c -o src_c/stem_UTF_8_turkish.o src_c/stem_UTF_8_turkish.c
cc -Iinclude -fPIC -c -o runtime/api.o runtime/api.c
cc -Iinclude -fPIC -c -o runtime/utilities.o runtime/utilities.c
cc -Iinclude -fPIC -c -o libstemmer/libstemmer.o libstemmer/libstemmer.c
ar -cru libstemmer.o src_c/stem_ISO_8859_1_latin.o src_c/stem_UTF_8_latin.o src_c/stem_ISO_8859_1_danish.o src_c/stem_UTF_8_danish.o src_c/stem_ISO_8859_1_dutch.o src_c/stem_UTF_8_dutch.o src_c/stem_ISO_8859_1_english.o src_c/stem_UTF_8_english.o src_c/stem_ISO_8859_1_finnish.o src_c/stem_UTF_8_finnish.o src_c/stem_ISO_8859_1_french.o src_c/stem_UTF_8_french.o src_c/stem_ISO_8859_1_german.o src_c/stem_UTF_8_german.o src_c/stem_ISO_8859_1_hungarian.o src_c/stem_UTF_8_hungarian.o src_c/stem_ISO_8859_1_italian.o src_c/stem_UTF_8_italian.o src_c/stem_ISO_8859_1_norwegian.o src_c/stem_UTF_8_norwegian.o src_c/stem_ISO_8859_1_porter.o src_c/stem_UTF_8_porter.o src_c/stem_ISO_8859_1_portuguese.o src_c/stem_UTF_8_portuguese.o src_c/stem_ISO_8859_2_romanian.o src_c/stem_UTF_8_romanian.o src_c/stem_KOI8_R_russian.o src_c/stem_UTF_8_russian.o src_c/stem_ISO_8859_1_spanish.o src_c/stem_UTF_8_spanish.o src_c/stem_ISO_8859_1_swedish.o src_c/stem_UTF_8_swedish.o src_c/stem_UTF_8_turkish.o runtime/api.o runtime/utilities.o libstemmer/libstemmer.o
checking for libstemmer.h... *** ../../../../ext/lingua/extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=../../../../ext/lingua
--curdir
--ruby=/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/bin/ruby
/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from ... [BACKLOG]
from ../../../../ext/lingua/extconf.rb:30:in `<main>'
rake aborted!
Command failed with status (1): [/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/...]
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment