Login  Register

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!

FYI, the underlying nokogiri issue was fixed in the latest release per https://github.com/asciidoctor/asciidoctor-epub3/issues/177.

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


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/nokogiri-error-when-installing-asciidoctor-epub3-tp6733p6953.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux