shoes / shoes4

Shoes 4 : the next version of Shoes
Other
1.59k stars 194 forks source link

No route to host on installing gem #1581

Closed coolbrg closed 4 years ago

coolbrg commented 4 years ago

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?

PragTob commented 4 years ago

:wave:

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?

coolbrg commented 4 years ago

Do other gems work?

Hmm, should have checked this. Others also not working :smile:

$ 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? 🤔

PragTob commented 4 years ago

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.

PragTob commented 4 years ago

Closing as not directly related. Hope you still get to fix it though 🤞