Re: nokogiri error when installing asciidoctor-epub3
Posted by
mojavelinux on
Jun 15, 2019; 11:56pm
URL: https://discuss.asciidoctor.org/nokogiri-error-when-installing-asciidoctor-epub3-tp6733p6954.html
Thanks for the info Andrew!
Best,
-Dan
On Sat, Jun 15, 2019 at 4:47 PM Andrew Carver [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Nokogiri will now accept up to Ruby v. 2.5.x; I ran it on Ruby 2.6.x today, after upgrading to nokogiri 1.8.5, and got this:
nokogiri requires Ruby version >= 2.2, < 2.6. The current ruby version is 2.6.3.62.
Running Ruby under a package manager makes it easier to update/upgrade. So, on Windows, I'm using Chocolatey to install/upgrade.
When I do a minor-version upgrade, like 2.5 -> 2.6, a nice thing with Chocolatey is that it leaves the 2.5 install alone, in its own folder, and puts the new, 2.6 version in a different folder. Then you can change which Ruby version you're using, just by changing the filepath for it in your PATH environment variable (e.g., edit it to have either
C:\tools\ruby25\bin
or
C:\tools\ruby26\bin
A very slight downside is that you have to re-install your self-installed gems, including Asciidoctor, in the new Ruby version; they won't carry over from the old version).
--