Skip to content

Not installable on Windows #1152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dschiller opened this issue Jan 8, 2020 · 6 comments
Open

Not installable on Windows #1152

dschiller opened this issue Jan 8, 2020 · 6 comments
Labels

Comments

@dschiller
Copy link

dschiller commented Jan 8, 2020

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>
@simon04 simon04 added the bug label Jan 23, 2020
@dschiller
Copy link
Author

dschiller commented Jan 24, 2020

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

@Bam92
Copy link

Bam92 commented Apr 2, 2020

Can you give some more info about your OS?

@dschiller
Copy link
Author

dschiller commented Apr 3, 2020

The OS is Microsoft Windows 10 Pro 10.0.18363

@mortalis13
Copy link

- 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
Copy link

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 %*

@sgoley
Copy link
Contributor

sgoley commented Nov 3, 2024

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
Labels
Projects
None yet
Development

No branches or pull requests

5 participants