Code Monkey home page Code Monkey logo

Comments (10)

aurelian avatar aurelian commented on June 7, 2024

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.

 avatar commented on June 7, 2024

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.

aurelian avatar aurelian commented on June 7, 2024

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.

aurelian avatar aurelian commented on June 7, 2024

Hi @Ashvith ...I pushed the windows platform build on rubygems, can you give it a try?

gem install ruby-stemmer

Thanks.

from ruby-stemmer.

 avatar commented on June 7, 2024

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.

aurelian avatar aurelian commented on June 7, 2024

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.

 avatar commented on June 7, 2024

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.

aurelian avatar aurelian commented on June 7, 2024

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.

 avatar commented on June 7, 2024
  1. 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

  2. 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.

aurelian avatar aurelian commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.