Cannot install Zendesk Application Framework - nokogiri dependency

258 views
Skip to first unread message

Jon Inazio Sanchez Martinez

unread,
Nov 13, 2017, 7:59:32 AM11/13/17
to nokogiri-talk

Hi!

For some weeks on, I'm unable to install Zendesk Application Tools, which is a rubygem and an SDK for building applications for Zendesk,

ZAT has several requirements, being one of them nokogiri. When it comes to install ZAT, the installation fails and I've tried lots of ruby versions and other methods with no luck.

See the following lines to read my environment:

PS C:\WINDOWS\system32> ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]

PS C:\WINDOWS\system32> gem -v
2.7.2

PS C:\WINDOWS\system32> gem install zendesk_apps_tools
ERROR:  Error installing zendesk_apps_tools:
        The last version of nokogiri (~> 1.6.8) to support your Ruby & RubyGems was 1.6.8.1. Try installing it with `gem install nokogiri -v 1.6.8.1` and then running the current command again
        nokogiri requires Ruby version < 2.4, >= 1.9.2. The current ruby version is 2.4.0.

PS C:\WINDOWS\system32> gem install nokogiri -v 1.6.8.1
ERROR:  Error installing nokogiri:
        The last version of nokogiri (= 1.6.8.1) to support your Ruby & RubyGems was 1.6.8.1. Try installing it with `gem install nokogiri -v 1.6.8.1`
        nokogiri requires Ruby version < 2.4, >= 1.9.2. The current ruby version is 2.4.0.

PS C:\WINDOWS\system32> gem install nokogiri
Fetching: nokogiri-1.8.1-x64-mingw32.gem (100%)
Nokogiri is built with the packaged libraries: libxml2-2.9.5, libxslt-1.1.30, zlib-1.2.11, libiconv-1.15.
Successfully installed nokogiri-1.8.1-x64-mingw32
Parsing documentation for nokogiri-1.8.1-x64-mingw32
Installing ri documentation for nokogiri-1.8.1-x64-mingw32
Done installing documentation for nokogiri after 12 seconds
1 gem installed

PS C:\WINDOWS\system32> gem install nokogiri -- --use-system-libraries
Nokogiri is built with the packaged libraries: libxml2-2.9.5, libxslt-1.1.30, zlib-1.2.11, libiconv-1.15.
Successfully installed nokogiri-1.8.1-x64-mingw32
Parsing documentation for nokogiri-1.8.1-x64-mingw32
Done installing documentation for nokogiri after 1 seconds
1 gem installed

PS C:\WINDOWS\system32> gem install zendesk_apps_tools
ERROR:  Error installing zendesk_apps_tools:
        The last version of nokogiri (~> 1.6.8) to support your Ruby & RubyGems was 1.6.8.1. Try installing it with `gem install nokogiri -v 1.6.8.1` and then running the current command again
        nokogiri requires Ruby version < 2.4, >= 1.9.2. The current ruby version is 2.4.0.

PS C:\WINDOWS\system32> nokogiri -v
# Nokogiri (1.8.1)
    ---
    warnings: []
    nokogiri: 1.8.1
    ruby:
      version: 2.4.2
      platform: x64-mingw32
      description: ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
      engine: ruby
    libxml:
      binding: extension
      source: packaged
      libxml2_path: "/home/flavorjones/code/oss/nokogiri/ports/x86_64-w64-mingw32/libxml2/2.9.5"
      libxslt_path: "/home/flavorjones/code/oss/nokogiri/ports/x86_64-w64-mingw32/libxslt/1.1.30"
      libxml2_patches: []
      libxslt_patches: []
      compiled: 2.9.5
      loaded: 2.9.5

Is there something wrong with nokogiri or is it with ZAT?

Would you need further details please tell me.

Thank you for your support.

Mike Dalessio

unread,
Nov 13, 2017, 10:23:10 AM11/13/17
to nokogiri-talk
Hi,

Thanks for asking this question. The underlying cause is zendesk_apps_support overspecifying an old version of ruby:

https://rubygems.org/gems/zendesk_apps_support

shows

nokogiri ~> 1.6.8

Please contact the author and ask them to update to either a more permissive dependency, or a more modern version of Nokogiri.


--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-talk+unsubscribe@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at https://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.

sol...@finovertech.com

unread,
Feb 15, 2018, 3:21:46 PM2/15/18
to nokogiri-talk
I have this same issue. If you were able to resolve it, I'd love to know how. Thx
Reply all
Reply to author
Forward
0 new messages