romanbsd / fast-stemmer

Fast Porter stemmer based on a C version of the algorithm
MIT License
102 stars 15 forks source link

Windows 10 build fails #11

Closed ErikSchierboom closed 8 years ago

ErikSchierboom commented 9 years ago

I am trying to install fast-stemmer on my Windows 10 machine, but it fails. I have tried to search for this error but didn't find a similar one. The solution that worked for others to set the gem version to 2.3.0 also didn't work. This is the error:

Installing fast-stemmer 1.0.2 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    C:/tools/Ruby21-x64/bin/ruby.exe extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
generating stemmer-x64-mingw32.def
      0 [main] sh 1404 fork_copy: linked dll data/bss pass 0 failed, 0x4E8000..0
x4E8AD8, done 0, windows pid 4212, Win32 error 487
/bin/sh: fork: Resource temporarily unavailable
make: *** [stemmer-x64-mingw32.def] Error 128

make failed, exit code 2

Gem files will remain installed in C:/tools/Ruby21-x64/lib/ruby/gems/2.1.0/gems/
fast-stemmer-1.0.2 for inspection.
Results logged to C:/tools/Ruby21-x64/lib/ruby/gems/2.1.0/extensions/x64-mingw32
/2.1.0/fast-stemmer-1.0.2/gem_make.out
An error occurred while installing fast-stemmer (1.0.2), and Bundler cannot
continue.
Make sure that `gem install fast-stemmer -v '1.0.2'` succeeds before bundling.
romanbsd commented 9 years ago

Unfortunately I don't have a windows machine. Hopefully someone will find a solution for this.

dgoerdes commented 8 years ago

run the command in a console that is running with admin permissions!

ErikSchierboom commented 8 years ago

Thanks. That works.