Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.
This repository was archived by the owner on May 12, 2022. It is now read-only.

Mac OS X installation for 1.9.2 (rvm) #9

@ababich

Description

@ababich

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions