devdocs icon indicating copy to clipboard operation
devdocs copied to clipboard

Not installable on Windows

Open dschiller opened this issue 4 years ago • 5 comments

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>

dschiller avatar Jan 08 '20 14:01 dschiller

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/[email protected] 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

dschiller avatar Jan 24 '20 15:01 dschiller

Can you give some more info about your OS?

Bam92 avatar Apr 02 '20 16:04 Bam92

The OS is Microsoft Windows 10 Pro 10.0.18363

dschiller avatar Apr 03 '20 07:04 dschiller

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

mortalis13 avatar Sep 24 '20 15:09 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 %*

mortalis13 avatar Sep 25 '20 11:09 mortalis13