shoes/shoes4

No route to host on installing gem

coolbrg opened this issue ยท 4 comments

I have tried both ways i.e using gem install shoes --pre and cloning the repo and doing gem install bundler && bundle install. In both the cases I am getting the following error:

ERROR:  While executing gem ... (IOError)
    No route to host

My gem env is

$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.7.6
  - RUBY VERSION: 2.5.3 (2019-02-11 patchlevel 0) [java]
  - INSTALLATION DIRECTORY: /Users/coolbrg/.rvm/gems/jruby-9.2.6.0
  - USER INSTALLATION DIRECTORY: /Users/coolbrg/.gem/jruby/2.5.0
  - RUBY EXECUTABLE: /Users/coolbrg/.rvm/rubies/jruby-9.2.6.0/bin/jruby
  - EXECUTABLE DIRECTORY: /Users/coolbrg/.rvm/gems/jruby-9.2.6.0/bin
  - SPEC CACHE DIRECTORY: /Users/coolbrg/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/coolbrg/.rvm/rubies/jruby-9.2.6.0/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-java-1.8
  - GEM PATHS:
     - /Users/coolbrg/.rvm/gems/jruby-9.2.6.0
     - /Users/coolbrg/.rvm/gems/jruby-9.2.6.0@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--no-rdoc --no-ri --env-shebang"
     - "update" => "--no-rdoc --no-ri --env-shebang"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/coolbrg/.rvm/gems/jruby-9.2.6.0/bin
     - /Users/coolbrg/.rvm/gems/jruby-9.2.6.0@global/bin
     - /Users/coolbrg/.rvm/rubies/jruby-9.2.6.0/bin
     - /Users/coolbrg/.rvm/bin

Any idea what I am doing wrong here?

๐Ÿ‘‹

Hi there that sounds more like an intermittent networkk error to me to be honest.

Works for me... might want to check your java -version so maybe something is misbehaving with JRuby/Java but otherwise this should all work. Just tried it out and it did for me.

Do other gems work?

Do other gems work?

Hmm, should have checked this.
Others also not working ๐Ÿ˜„

$ rvm use jruby-9.2.6.0
Using /Users/coolbrg/.rvm/gems/jruby-9.2.6.0

$ gem install shoes4 --pre
ERROR:  While executing gem ... (IOError)
    No route to host

$ java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)

$ gem install bundler
ERROR:  While executing gem ... (IOError)
    No route to host

Any idea what might be the issue here? ๐Ÿค”

seems like some missing network libraries or what not... I'd try to install a new JRuby version 9.2.11.0 or what not. Seems more like your JRuby install is borked but no idea/why/how/or what.

Closing as not directly related. Hope you still get to fix it though ๐Ÿคž