romanbsd / fast-stemmer Goto Github PK
View Code? Open in Web Editor NEWFast Porter stemmer based on a C version of the algorithm
License: MIT License
Fast Porter stemmer based on a C version of the algorithm
License: MIT License
I'm trying to install Jekyll which depends on fast-stemmer. Sadly the installation fails with the following error:
$ gem install jekyll
Successfully installed liquid-2.5.0
Fetching: fast-stemmer-1.0.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
/Users/debo/.rbenv/versions/1.9.3-p392/bin/ruby extconf.rb
/Users/debo/.rbenv/versions/1.9.3-p392/bin/ruby: invalid option -g (-h will show valid options) (RuntimeError)
Gem files will remain installed in /Users/debo/.rbenv/versions/1.9.3-p392/gemsets/magetest global/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Users/debo/.rbenv/versions/1.9.3-p392/gemsets/magetest global/gems/fast-stemmer-1.0.2/ext/gem_make.out
However everything for previous versions such as ruby 1.9.3-p194
Any ideas? Any help will be very much appreciated.
Thanks,
Debo
Having issues on Windows installing this gem.
As recorded here: https://talk.jekyllrb.com/t/jekyll-error-failed-to-build-gem-native-extension/430/2
This is the problem:
C:\Users\darrell.tunnell\Source\Repos\dazinator.github.io>bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
Using RedCloth 4.2.9
Using blankslate 2.1.2.4
Using hitimes 1.2.2
Using timers 4.0.1
Using celluloid 0.16.0
Using chunky_png 1.3.4
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe -r ./siteconf20150528-1132-13jp7fp.rb extconf.rb
creating Makefile
make clean
Makefile:165: *** target pattern contains no `%'. Stop.
make
Makefile:165: *** target pattern contains no `%'. Stop.
make failed, exit code 2
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/fast-stem
mer-1.0.2 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/fa
st-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.
Any ideas?
Compilation error on Mac OS X with Xcode 5.1 seems to be failing more than usual. Have you seen this? Full gem_make.out
dumps in the issues below:
Ref: jekyll/jekyll#2125 & related issues
Could you please integrate early English stemming capacity into fast-stemmer as per http://snowball.tartarus.org/texts/earlyenglish.html?
It would be amazing if we could simply call .stem_early or something of that nature to execute early English stemming on words.
I'm using the 2.1.10 version gem and getting this when I try to install your application:
MacBook-Pro-de-Jonas-Rocha-Lima-Amaro-2:ext jonasrla$ sudo gem install fast-stemmer
Building native extensions. This could take a while...
ERROR: Error installing fast-stemmer:
ERROR: Failed to build gem native extension.
Gem files will remain installed in /opt/local/lib/ruby2.0/gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /opt/local/lib/ruby2.0/gems/2.0.0/gems/fast-stemmer-1.0.2/ext/gem_make.out
I am facing an error while installing this gem under jruby 9.0.4.0 (2.2.2)
NotImplementedError: C extensions are not supported
Getting this error every time i try gem install fast-stemmer. Got to this stage through trying to install Jekyll. Terminal logging this:
Building native extensions. This could take a while...
ERROR: Error installing fast-stemmer:
ERROR: Failed to build gem native extension.
~/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling porter.c
make: I.: No such file or directory
make: [porter.o] Error 1 (ignored)
compiling porter_wrap.c
make: I.: No such file or directory
make: [porter_wrap.o] Error 1 (ignored)
linking shared-object stemmer.bundle
make: dynamic: No such file or directory
make: [stemmer.bundle] Error 1 (ignored)
make "DESTDIR=" install
compiling porter.c
make: I.: No such file or directory
make: [porter.o] Error 1 (ignored)
compiling porter_wrap.c
make: I.: No such file or directory
make: [porter_wrap.o] Error 1 (ignored)
linking shared-object stemmer.bundle
make: dynamic: No such file or directory
make: [stemmer.bundle] Error 1 (ignored)
/usr/bin/install -m 0755 stemmer.bundle ./.gem.20140307-9030-1flv0j2
install: stemmer.bundle: No such file or directory
make: *** [install-so] Error 71
make install failed, exit code 2
Gem files will remain installed in ~/.rvm/gems/ruby-2.1.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to ~/.rvm/gems/ruby-2.1.0/extensions/x86_64-darwin-12/2.1.0-static/fast-stemmer-1.0.2/gem_make.out
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.