for 0.8.2 Mac OS X installation fails using
gem install ruby-stemmer
in case of badly compiled libstemmer.o
you have two bugs in extconf.rb where you attempt to determine arch for macs
I haven't tried to fix determination logic but fixed the mistake which blocked ARCH forced by external param. You need to change
unless ENV['ARCHFLAGS'].nil?
to
if ENV['ARCHFLAGS'].nil?
this allows you to start process correctly via ARCHFLAGS='-arch x86_64' gem install ruby-stemmer
but to finish it ok you need to use ranlib for libstemmer.o
so, I've added
if RUBY_PLATFORM =~ /darwin/
system "ranlib #{File.expand_path(File.join(LIBSTEMMER, 'libstemmer.o'))}"
end
after "#{make} libstemmer.o" case and built with this fixes gem was successfully installed under rvmed 1.9.2 ruby on Mac OS X 10.6 via "ARCHFLAGS='-arch x86_64' gem install ruby-stemmer" command
please investigate, and probably add these fixes to next version