Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make nokogiri compatible to ruby 2.5 on Windows #1709

Closed
SimonHoenscheid opened this issue Jan 8, 2018 · 16 comments
Closed

Make nokogiri compatible to ruby 2.5 on Windows #1709

SimonHoenscheid opened this issue Jan 8, 2018 · 16 comments
Milestone

Comments

@SimonHoenscheid
Copy link

If you're having trouble installing Nokogiri ...

Have you tried following [the installation tutorial][tutorial]?

yes

What is the output of gem install?

PS C:\Users\replaced> gem install nokogiri -v 1.8.1
ERROR:  Error installing nokogiri:
The last version of nokogiri (= 1.8.1) to support your Ruby & RubyGems was 1.8.1. Try installing it with `gem install nokogiri -v 1.8.1`
 nokogiri requires Ruby version < 2.5, >= 2.2. The current ruby version is 2.5.0.

What are the contents of the mkmf.log file?

Didnt get so far

What operating system are you using?

Windows 10 x64

@francesco-loreti
Copy link

Same OS and same problem...

@Lighted8888
Copy link

Same here, and I really would like it if downgrading is not my only option

@McRaeAlex
Copy link

I am currently having the same issue

@richpeck
Copy link

Same problem

@Shekharrajak
Copy link

Windows 7 x64 same error msg.

>gem install nokogiri -v 1.8.1
ERROR:  Error installing nokogiri:
        The last version of nokogiri (= 1.8.1) to support your Ruby & RubyGems w
as 1.8.1. Try installing it with `gem install nokogiri -v 1.8.1`
        nokogiri requires Ruby version < 2.5, >= 2.2. The current ruby version i
s 2.5.0.

@fera2k
Copy link

fera2k commented Jan 15, 2018

The fix is already merged, although a new release is pending. See: #1704 & #1706

Until then, it's better to stick with Ruby 2.4.2 on Windows.

The Nokogiri team removed the GEMSPEC from sources, to disallow people building from master branch, since it is unstable and probably would contain bugs. You can read more about it here:
https://github.com/sparklemotion/nokogiri/blob/master/Y_U_NO_GEMSPEC.md

@leehanslim
Copy link

Any word on support for 2.5.0 on OS X?

@SimonHoenscheid
Copy link
Author

@leehanslim OSX should use the normal gems that also work on *nix. I had no problems with rbenv to install nokogiri on OSX.

@tchikuba
Copy link

Same problem.

@francesco-loreti
Copy link

any news?

@SimonHoenscheid
Copy link
Author

I am wondering how this happens. Its kind of a tradition ruby makes a point release around christmas every year. the dev version was around for weeks. Ignoring Windows blames the users who are bound to this OS for what ever reason

@flavorjones
Copy link
Member

@SimonHoenscheid nokogiri-core is always welcoming of contributors who would like to help us support Windows. We've asked for help repeatedly over the years, as we've all got jobs that distract us from supporting open source software, despite our best efforts and intentions.

I'd like to ask that you pay attention to the tone of your message above. "Ignoring Windows" is clearly an untrue statement, given the number of hours I've personally spent, the number of hours @larskanis has spent, the amount of time we've spent providing automated testing tooling for Nokogiri on Windows, etc., etc.

Windows support in Nokogiri is first class. We provide precompiled DLLs for users who want a fast, simple installation; and we provide support for users who want to compile Nokogiri and libxml using DevKit. Saying that we're ignoring Windows users is absurd and a little insulting.

Currently I'm blocking a release that supports Ruby 2.5 on windows on getting Ruby 2.5 supported in our test pipelines. I accept some fault for not being more transparent about this as the blocking factor. But now I'm trying to make amends by communicating exactly what's going on behind the scenes to properly support you and the platform that you use. Not ignoring you or blaming you, as you claim.

I'm going to lock this issue because I really don't want to do a whole back-and-forth. We'll release support for Ruby 2.5 on Windows as soon as we can, just as we always do, and we appreciate your patience and empathy as we work.

@sparklemotion sparklemotion locked as too heated and limited conversation to collaborators Jan 23, 2018
@flavorjones
Copy link
Member

flavorjones commented Jan 26, 2018

Remaining work to be done on our CI pipeline at https://ci.nokogiri.org/

This is probably a good time to remind watchers that Ruby 2.2 is approaching EOL on 2018-03-31, and so the first release after that will likely remove Ruby 2.2 binaries from the fat gem.

@flavorjones
Copy link
Member

@flavorjones
Copy link
Member

Note that commit bf94cf5 was added to master to make windows tests less brittle.

@flavorjones flavorjones added this to the 1.8.2 milestone Jan 28, 2018
@flavorjones
Copy link
Member

Nokogiri 1.8.2 has shipped with Ruby 2.5 support in the "fat binary" windows gems. Thanks everyone for your patience.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants