Comments (10)
Hi @Ashvith unfortunately I didn't had time to release version 3.0 of ruby-stemmer with windows binaries.
Sorry about that, but life and other work got in the way.
For now, my suggestion is to stick to a version < 3.0. I dropped ruby 1.9 support in version 3, that's the only change between 2 and 3.
from ruby-stemmer.
Hey @aurelian, I am using the latest version of Ruby, that is, 2.7.1, with DevKit. Even the older versions have the same problem. And this is affecting another gem called lurn, if I am not wrong.
I'll make a fork of this project, but I need some guidance.
I may be a beginner, but hey, I can try right? Can you point out what exactly needs to be taken care of, to fix this?
from ruby-stemmer.
Hi @Ashvith , the issue is on my side: as the gem owner I should have created a cross-compiled version of it for the windows platform and push it to rubygems as I did in the past.
Unfortunately for me cross-compiling this lib has always been a pain for various reasons.
Thanks a lot for your offer to help, there's not much code-wise to be done.
from ruby-stemmer.
Hi @Ashvith ...I pushed the windows platform build on rubygems, can you give it a try?
gem install ruby-stemmer
Thanks.
from ruby-stemmer.
Hello there, it shows this
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing ruby-stemmer:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ruby-stemmer-3.0.0/ext/lingua
C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r ./siteconf20201208-4420-1e43zlu.rb extconf.rb
The filename, directory name, or volume label syntax is incorrect.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby27-x64/bin/$(RUBY_BASE_NAME)
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ruby-stemmer-3.0.0 for inspection.
Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/ruby-stemmer-3.0.0/gem_make.out
I'm cool with it not working, tbh I don't want it fixed at the expense of your routine getting disturbed. I'll try using Python bridge for now.
Side note: turns out, I've tried all the versions down till 0.9.1, and it has the same issue.
from ruby-stemmer.
Hi @Ashvith : what version of windows are you on and what is the output of bundle platform
(or: ruby -e 'puts RUBY_PLATFORM'
?
Can you try to pass the --platform
flag to gem install ruby-stemmer
e.g. gem install ruby-stemmer --platform x86-mingw32
?
It looks like it's still trying to build the extension from the source instead of fetching the binary gem build for your platform.
from ruby-stemmer.
Still the same I guess?
PS C:\Users\ashvi\Documents\HTML> gem install ruby-stemmer --platform x86-mingw32
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing ruby-stemmer:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ruby-stemmer-3.0.0/ext/lingua
C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r ./siteconf20201208-12036-bb6fs.rb extconf.rb
The filename, directory name, or volume label syntax is incorrect.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby27-x64/bin/$(RUBY_BASE_NAME)
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ruby-stemmer-3.0.0 for inspection.
Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/ruby-stemmer-3.0.0/gem_make.out
from ruby-stemmer.
Hi @Ashvith
1/ What version of Windows are you running there?
2/ What's the output of running bundle platform
or ruby -e 'puts RUBY_PLATFORM'
?
from ruby-stemmer.
-
Device name LAPTOP-HA4V47DE
Processor Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz 1.80 GHz
Installed RAM 8.00 GB (7.85 GB usable)
Device ID 34075CF8-3BEF-4347-9557-A97A89A3138B
Product ID 00327-35848-15689-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display -
This is what I get for the next one-
$ bundle platform
Could not locate Gemfile
$ ruby -e 'puts RUBY_PLATFORM'
x64-mingw32
from ruby-stemmer.
Thanks @Ashvith, sorry I can't help you as unfortunately I don't have access to a windows environment to test this out, hopefully someone will find this issue and chip-in.
from ruby-stemmer.
Related Issues (20)
- warning: implicit conversion shortens 64-bit value into a 32-bit value
- Bundler uses :require, not :lib HOT 1
- Mac OS X installation with/without ARCHFLAGS + rvm not working HOT 5
- czech stemmer
- Bulgarian stemmer HOT 5
- This stemmer doesn't support spanish language HOT 1
- version.rb missing from 0.9.4 release HOT 2
- Stemming single-item array should yield an array HOT 1
- "simply" and "simple" give different stems HOT 1
- How to detect supported languages? HOT 2
- RubyNLP HOT 1
- libstemmer_c build is broken on Ubuntu HOT 2
- jruby support HOT 2
- German umlauts are being converted HOT 1
- Gem installation failing on Windows 10
- Compile problems on OSX HOT 2
- Latin support HOT 1
- Ruby 1.9 and encoding HOT 1
- Mac OS X installation for 1.9.2 (rvm) HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-stemmer.