Skip to content

Instantly share code, notes, and snippets.

$ 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
$ vim tmp/x86_64-darwin10/stemmer_native/1.9.2/mkmf.log
"gcc -o conftest -I/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/x86_64-darwin10 -I/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/ruby/backward -I/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1 -I../../../../ext/lingua -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I/Volumes/Sites/ruby-stemmer/libstemmer_c/include conftest.c -L. -L/Users/coyote/.rvm/rubies/ruby-1.9.2-p136/lib -L. -L/usr/local/lib -L/Volumes/Sites/ruby-stemmer/libstemmer_c /Volumes/Sites/ruby-stemmer/libstemmer_c/libstemmer.o -lruby.1.9.1-static -lpthread -ldl -lobjc "
ld: in /Volumes/Sites/ruby-stemmer/libstemmer_c/libstemmer.o, archive has no table of contents
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0
$ ARCHFLAGS='-arch x86_64' 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 -arch x86_64 -c -o src_c/stem_ISO_8859_1_latin.o src_c/stem_ISO_8859_1_latin.c
..... NOTE ARCH IS HERE NOW ....
cc -Iinclude -fPIC -arch x86_64 -c -o src_c/stem_UTF_8_turkish.o src_c/stem_UTF_8_turkish.c
cc -Iinclude -fPIC -arch x86_64 -c -o runtime/api.o runtime/api.c
cc -Iinclude -fPIC -arch x86_64 -c -o runtime/utilities.o runtime/utilities.c
@ababich
ababich / gist:1872042
Created February 20, 2012 22:45
testd122
bla bla гетьманцев