oneclick / rubyinstaller2

MSYS2 based RubyInstaller for Windows
https://rubyinstaller.org
BSD 3-Clause "New" or "Revised" License
654 stars 249 forks source link

Fail to use jekyll on Win 11 #248

Closed junjiag closed 2 years ago

junjiag commented 2 years ago

What problems are you experiencing?

jekyll -v failed when after installation

Steps to reproduce

Installation via RubyInstaller (https://jekyllrb.com/docs/installation/windows/) Download and install a Ruby+Devkit version from RubyInstaller Downloads. Use default options for installation. Run the ridk install step on the last stage of the installation wizard. This is needed for installing gems with native extensions. You can find additional information regarding this in the RubyInstaller Documentation Open a new command prompt window from the start menu, so that changes to the PATH environment variable becomes effective. Install Jekyll and Bundler using gem install jekyll bundler Check if Jekyll has been installed properly: jekyll -v (FAILED)

What's the output from ridk version?

ruby: path: C:/Ruby30-x64 version: 3.0.2 platform: x64-mingw32 cc: gcc.exe (Rev5, Built by MSYS2 project) 10.3.0 ruby_installer: package_version: 3.0.2-1 git_commit: 80c9ca9 msys2: path: C:\msys64 sh: GNU bash, version 4.4.23(1)-release (x86_64-pc-msys) os: Microsoft Windows [Version 10.0.22000.318]

MSP-Greg commented 2 years ago

One of Jekyll's 'indirect' dependencies is EventMachine. That gem cannot be normally installed on Windows Ruby 3.0 due to a problem with the most recent EventMachine release. You may be able to install it from the GitHub repo, or I could provide a gem that could be downloaded and installed locally.

This isn't a RubyInstaller2 issue...

junjiag commented 2 years ago

Can you please provide me the gem which is available for Jekyll installation?

larskanis commented 2 years ago

@junjiag You need to post the commands and the outputs in order to get any useful help. Is jekyll still a problem?

mohits commented 2 years ago

Hi @larskanis - here is what I tried on Windows 10 because I do not have Windows 11 yet. Some lines are removed from the jeyll install for brevity.

$ ruby -v
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x64-mingw32]

$ gem install jekyll
Fetching unicode-display_width-1.8.0.gem
Fetching terminal-table-2.0.0.gem
...
Successfully installed sassc-2.4.0-x64-mingw32
Successfully installed jekyll-sass-converter-2.1.0
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
Successfully installed http_parser.rb-0.8.0
Successfully installed eventmachine-1.2.7-x64-mingw32
...
Parsing documentation for http_parser.rb-0.8.0
unknown encoding name "chunked\r\n\r\n25" for ext/ruby_http_parser/vendor/http-parser-java/tools/parse_tests.rb, skipping
Installing ri documentation for http_parser.rb-0.8.0
Parsing documentation for eventmachine-1.2.7-x64-mingw32
...
Done installing documentation for unicode-display_width, terminal-table, safe_yaml, rouge, forwardable-extended, pathutil, mercenary, liquid, kramdown, kramdown-parser-gfm, rb-inotify, rb-fsevent, listen, jekyll-watch, sassc, jekyll-sass-converter, http_parser.rb, eventmachine, em-websocket, colorator, jekyll after 30 seconds
21 gems installed

Thereafter, I was able to do:

$ jekyll -v
jekyll 4.2.1

Since we have no feedback from @junjiag on this, I would recommend we keep it open for a few more days to see if anyone replies, especially if they have Windows 11 (though I think the issue is not really related to Windows 11) and if we don't hear back, we close this.

larskanis commented 2 years ago

Thank you @mohits for trying this out! Closing now.