Skip to content

Not installable on Windows #1152

Open
Open

Description

@dschiller
D:\Work\Coding\DevDocs\devdocs>bundle exec thor docs:download --default
(1/6) DOM Events FAILED (Errno::ENOENT: No such file or directory - gunzip)
(2/6) CSS FAILED (Errno::ENOENT: No such file or directory - gunzip)
(3/6) HTML FAILED (Errno::ENOENT: No such file or directory - gunzip)
(4/6) JavaScript FAILED (Errno::ENOENT: No such file or directory - gunzip)
(5/6) DOM FAILED (Errno::ENOENT: No such file or directory - gunzip)
(6/6) HTTP FAILED (Errno::ENOENT: No such file or directory - gunzip)
Done

D:\Work\Coding\DevDocs\devdocs>bundle exec rackup
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
Traceback (most recent call last):
        30: from C:/Ruby26-x64/bin/rackup:23:in `<main>'
        29: from C:/Ruby26-x64/bin/rackup:23:in `load'
        28: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/bin/rackup:4:in `<top (required)>'
        27: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:148:in `start'
        26: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:283:in `start'
        25: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app'
        24: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:219:in `app'
        23: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config'
        22: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file'
        21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string'
        20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval'
        19: from D:/Work/Coding/DevDocs/devdocs/config.ru:in `<main>'
        18: from D:/Work/Coding/DevDocs/devdocs/config.ru:in `new'
        17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize'
        16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval'
        15: from D:/Work/Coding/DevDocs/devdocs/config.ru:5:in `block in <main>'
        14: from D:/Work/Coding/DevDocs/devdocs/config.ru:5:in `require'
        13: from D:/Work/Coding/DevDocs/devdocs/lib/app.rb:4:in `<top (required)>'
        12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler.rb:174:in `require'
        11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `require'
        10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `each'
         9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `block in require'
         8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `each'
         7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `block (2 levels) in require'
         6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `require'
         5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thin-1.7.2/lib/thin.rb:7:in `<top (required)>'
         4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thin-1.7.2/lib/thin.rb:7:in `require'
         3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/eventmachine-1.2.7-x64-mingw32/lib/eventmachine.rb:8:in `<top (required)>'
         2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/eventmachine-1.2.7-x64-mingw32/lib/eventmachine.rb:8:in `require'
         1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/eventmachine-1.2.7-x64-mingw32/lib/rubyeventmachine.rb:2:in `<top (required)>'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/eventmachine-1.2.7-x64-mingw32/lib/rubyeventmachine.rb:2:in `require': cannot load such file -- 2.6/rubyeventmachine (LoadError)

D:\Work\Coding\DevDocs\devdocs>

Activity

  1. dschiller commented on Jan 24, 2020

    @dschiller
    Author

    Got a bit closer with this Fix.

    - gem uninstall eventmachine
    - gem install eventmachine --platform ruby
    
    Source: https://github.com/oneclick/rubyinstaller2/issues/96
    

    Also mentionable I changed Ruby 2.6.x x64 and curl x64 to both 32 Bit.

    Output

    D:\Work\Sandbox\devdocs>gem uninstall eventmachine
    
    You have requested to uninstall the gem:
            eventmachine-1.2.7-x86-mingw32
    
    thin-1.7.2 depends on eventmachine (~> 1.0, >= 1.0.4)
    If you remove this gem, these dependencies will not be met.
    Continue with Uninstall? [yN]  y
    Successfully uninstalled eventmachine-1.2.7-x86-mingw32
    
    D:\Work\Sandbox\devdocs>gem install eventmachine --platform ruby
    Fetching eventmachine-1.2.7.gem
    Temporarily enhancing PATH for MSYS/MINGW...
    Building native extensions. This could take a while...
    Successfully installed eventmachine-1.2.7
    Parsing documentation for eventmachine-1.2.7
    Installing ri documentation for eventmachine-1.2.7
    Done installing documentation for eventmachine after 4 seconds
    1 gem installed
    
    D:\Work\Sandbox\devdocs>bundle exec rackup
    Generating spritesheet to assets/images/sprites/docs.png with icons of size 16 x 16
    Generating spritesheet to assets/images/sprites/docs@2x.png with icons of size 32 x 32
    Saving spritesheet details to assets/images/sprites/docs.json
    Thin web server (v1.7.2 codename Bachmanity)
    Maximum connections set to 1024
    Listening on localhost:9292, CTRL+C to stop
    

    But Website shows Errors:

    image

  2. Bam92 commented on Apr 2, 2020

    @Bam92

    Can you give some more info about your OS?

  3. dschiller commented on Apr 3, 2020

    @dschiller
    Author

    The OS is Microsoft Windows 10 Pro 10.0.18363

  4. mortalis13 commented on Sep 24, 2020

    @mortalis13
    - gem uninstall eventmachine
    - gem install eventmachine --platform ruby
    
    Source: https://github.com/oneclick/rubyinstaller2/issues/96
    

    Thanks for the fix.
    Although for me it worked on the x64 setup.

  5. mortalis13 commented on Sep 25, 2020

    @mortalis13

    I resolved the No such file or directory - gunzip error by creating gunzip.bat in the d:\msys64\usr\bin\ directory.
    The default script is Bash, so it can't be run from Windows.

    The contents of the gunzip.bat:

    @echo off
    gzip -d %*
    
  6. sgoley commented on Nov 3, 2024

    @sgoley
    Contributor

    I also ran into this issue and was still running into issues after trying the above.
    Instead, what worked for me was retrieving the gzip window binary exe from sourceforge and putting that in my system path.
    And just to be safe, I duplicated the gzip.exe and named the second copy gunzip.exe

    Everything works as expected for thor docs:download in powershell (with all other normal setup steps of course) now:
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions