rubyinstaller2
rubyinstaller2 copied to clipboard
Unable to install Jekyll on Windows 10 System
What problems are you experiencing?
PS C:\Users\donal> gem install jekyll bundler
ERROR: While executing gem ... (Gem::Package::FormatError)
package metadata is missing in C:/Ruby32-x64/lib/ruby/gems/3.2.0/cache/concurrent-ruby-1.2.2.gem
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/package.rb:687:in verify_files' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/package.rb:613:in
block (2 levels) in verify'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/package/tar_reader.rb:27:in new' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/package.rb:610:in
block in verify'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/package/file_source.rb:29:in open' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/package/file_source.rb:29:in
with_read_io'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/package.rb:609:in verify' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/package.rb:590:in
spec'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/installer.rb:287:in spec' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/installer.rb:716:in
verify_spec'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/installer.rb:906:in pre_install_checks' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/installer.rb:302:in
install'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/resolver/specification.rb:104:in install' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/request_set.rb:194:in
block in install'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/request_set.rb:182:in each' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/request_set.rb:182:in
install'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/commands/install_command.rb:214:in install_gem' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/commands/install_command.rb:230:in
block in install_gems'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/commands/install_command.rb:223:in each' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/commands/install_command.rb:223:in
install_gems'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/commands/install_command.rb:169:in execute' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/command.rb:327:in
invoke_with_build_args'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/command_manager.rb:252:in invoke_command' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/command_manager.rb:192:in
process_args'
C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/command_manager.rb:150:in run' C:/Ruby32-x64/lib/ruby/3.2.0/rubygems/gem_runner.rb:51:in
run'
C:/Ruby32-x64/bin/gem.cmd:18:in `
Steps to reproduce
gem install jekyll bundler
What's the output from ridk version
?
ruby: path: C:/Ruby32-x64 version: 3.2.2 platform: x64-mingw-ucrt cc: gcc.exe (Rev10, Built by MSYS2 project) 12.2.0 ruby_installer: package_version: 3.2.2-1 git_commit: 83df213 msys2: path: C:\Ruby32-x64\msys64 cc: gcc (Rev1, Built by MSYS2 project) 13.2.0 sh: GNU bash, version 5.2.15(1)-release (x86_64-pc-msys) os: Microsoft Windows [Version 10.0.19045.3208]
I have a slightly older version of everything (but still 3.2.0) and everything works as expected. Could you try again and see if it stays the same?
$ ridk version
---
ruby:
path: C:/Ruby32-x64
version: 3.2.0
platform: x64-mingw-ucrt
ruby_installer:
package_version: 3.2.0-1
git_commit: 5507d7c
msys2:
path: C:\Ruby32-x64\msys64
cc: gcc (Rev7, Built by MSYS2 project) 12.2.0
sh: GNU bash, version 5.2.9(1)-release (x86_64-pc-msys)
os: Microsoft Windows [Version 10.0.19045.3208]
I successfully installed jekyll on my Windows 10 using the "gem install jekyll bundler" command. But attempting to use ridk version failed:
donal@DESKTOP-GLIN45Q MINGW64 ~
$ gem -v
3.3.26
donal@DESKTOP-GLIN45Q MINGW64 ~
$ ridk version
bash: ridk: command not found
donal@DESKTOP-GLIN45Q MINGW64 ~
$ jekyll -v
jekyll 4.3.2
donal@DESKTOP-GLIN45Q MINGW64 ~
$ ruby -v
ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x64-mingw-ucrt]
But attempting to use ridk version failed
So, you're using the bash shell. Is there a file named 'ridk' in your path? Probably not, since RubyInstaller builds do not provide one. ridk.cmd version
works, not sure about other arguments.
I think it's really designed to be used with a Windows shell.
This is the results of running ridk install usine Powershell:
PS C:\Users\donal> ridk install
_____ _ _____ _ _ _ ___
| __ \ | | |_ _| | | | | | |__ \
| |__) | _| |__ _ _ | | _ __ ___| |_ __ _| | | ___ _ __ ) |
| _ / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ /
| | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | | __/ | / /_
|_| \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
__/ | _
|___/ _|_ _ __ | | o __ _| _ _
| (_) | |^| | | |(_|(_)\^/_>
1 - MSYS2 base installation
2 - MSYS2 system update (optional)
3 - MSYS2 and MINGW development toolchain
Which components shall be installed? If unsure press ENTER [1,3] 3
> sh -lc true
MSYS2 seems to be properly installed
Install MSYS2 and MINGW development toolchain ...
> pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils file gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-ucrt-x86_64-binutils mingw-w64-ucrt-x86_64-crt-git mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-gcc-libs mingw-w64-ucrt-x86_64-headers-git mingw-w64-ucrt-x86_64-libmangle-git mingw-w64-ucrt-x86_64-libwinpthread-git mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-tools-git mingw-w64-ucrt-x86_64-winpthreads-git pkgconf mingw-w64-ucrt-x86_64-pkgconf
warning: autoconf-wrapper-20221207-1 is up to date -- skipping
warning: autogen-5.18.16-4 is up to date -- skipping
warning: automake-wrapper-20221207-1 is up to date -- skipping
warning: diffutils-3.9-1 is up to date -- skipping
warning: file-5.44-5 is up to date -- skipping
warning: gawk-5.2.1-2 is up to date -- skipping
warning: grep-1~3.0-6 is up to date -- skipping
warning: libtool-2.4.7-3 is up to date -- skipping
warning: m4-1.4.19-2 is up to date -- skipping
warning: make-4.4.1-1 is up to date -- skipping
warning: patch-2.7.6-2 is up to date -- skipping
warning: sed-4.9-1 is up to date -- skipping
warning: texinfo-7.0.3-1 is up to date -- skipping
warning: texinfo-tex-7.0.3-1 is up to date -- skipping
warning: wget-1.21.3-2 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-binutils-2.40-2 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-crt-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-gcc-12.2.0-10 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-gcc-libs-12.2.0-10 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-headers-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-libmangle-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-libwinpthread-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-make-4.4-2 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-tools-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-winpthreads-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: pkgconf-1.9.4-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-pkgconf-1~1.8.0-2 is up to date -- skipping
there is nothing to do
Install MSYS2 and MINGW development toolchain succeeded
You can use 'ridk enable' to activate the MSYS2 tools on the command prompt.
1 - MSYS2 base installation
2 - MSYS2 system update (optional)
3 - MSYS2 and MINGW development toolchain
Which components shall be installed? If unsure press ENTER []
PS C:\Users\donal> ridk version
---
ruby:
path: C:/Ruby31-x64
version: 3.1.4
platform: x64-mingw-ucrt
ruby_installer:
package_version: 3.1.4-1
git_commit: 83df213
msys2:
path: C:\Ruby31-x64\msys64
cc: gcc (Rev10, Built by MSYS2 project) 12.2.0
sh: GNU bash, version 5.2.15(1)-release (x86_64-pc-msys)
os: Microsoft Windows [Version 10.0.19045.3324]
@dfcoffin
Thanks.
A quick look shows everything seems ok.
package metadata is missing in C:/Ruby32-x64/lib/ruby/gems/3.2.0/cache/concurrent-ruby-1.2.2.gem
Try deleting that file and reinstalling. I normally use ruby master, and concurrent-ruby-1.2.2.gem
installed fine. The cache is just that, RubyGems will download the file if it can't find it.
I deleted C:/Ruby32-x64/lib/ruby/gems/3.2.0/cache/concurrent-ruby-1.2.2.gem and reinstalled.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
Cannot load PSReadline module. Console is running without PSReadline.
PS C:\Users\donal> ridk install
_____ _ _____ _ _ _ ___
| __ \ | | |_ _| | | | | | |__ \
| |__) | _| |__ _ _ | | _ __ ___| |_ __ _| | | ___ _ __ ) |
| _ / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ /
| | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | | __/ | / /_
|_| \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
__/ | _
|___/ _|_ _ __ | | o __ _| _ _
| (_) | |^| | | |(_|(_)\^/_>
1 - MSYS2 base installation
2 - MSYS2 system update (optional)
3 - MSYS2 and MINGW development toolchain
Which components shall be installed? If unsure press ENTER [1,3] 3
> sh -lc true
MSYS2 seems to be properly installed
Install MSYS2 and MINGW development toolchain ...
> pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils file gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-ucrt-x86_64-binutils mingw-w64-ucrt-x86_64-crt-git mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-gcc-libs mingw-w64-ucrt-x86_64-headers-git mingw-w64-ucrt-x86_64-libmangle-git mingw-w64-ucrt-x86_64-libwinpthread-git mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-tools-git mingw-w64-ucrt-x86_64-winpthreads-git pkgconf mingw-w64-ucrt-x86_64-pkgconf
warning: autoconf-wrapper-20221207-1 is up to date -- skipping
warning: autogen-5.18.16-4 is up to date -- skipping
warning: automake-wrapper-20221207-1 is up to date -- skipping
warning: diffutils-3.9-1 is up to date -- skipping
warning: file-5.44-5 is up to date -- skipping
warning: gawk-5.2.1-2 is up to date -- skipping
warning: grep-1~3.0-6 is up to date -- skipping
warning: libtool-2.4.7-3 is up to date -- skipping
warning: m4-1.4.19-2 is up to date -- skipping
warning: make-4.4.1-1 is up to date -- skipping
warning: patch-2.7.6-2 is up to date -- skipping
warning: sed-4.9-1 is up to date -- skipping
warning: texinfo-7.0.3-1 is up to date -- skipping
warning: texinfo-tex-7.0.3-1 is up to date -- skipping
warning: wget-1.21.3-2 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-binutils-2.40-2 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-crt-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-gcc-12.2.0-10 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-gcc-libs-12.2.0-10 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-headers-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-libmangle-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-libwinpthread-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-make-4.4-2 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-tools-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-winpthreads-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: pkgconf-1.9.4-1 is up to date -- skipping
warning: mingw-w64-ucrt-x86_64-pkgconf-1~1.8.0-2 is up to date -- skipping
there is nothing to do
Install MSYS2 and MINGW development toolchain succeeded
You can use 'ridk enable' to activate the MSYS2 tools on the command prompt.
1 - MSYS2 base installation
2 - MSYS2 system update (optional)
3 - MSYS2 and MINGW development toolchain
Which components shall be installed? If unsure press ENTER []
PS C:\Users\donal> ridk version
---
ruby:
path: C:/Ruby31-x64
version: 3.1.4
platform: x64-mingw-ucrt
ruby_installer:
package_version: 3.1.4-1
git_commit: 83df213
msys2:
path: C:\Ruby31-x64\msys64
cc: gcc (Rev10, Built by MSYS2 project) 12.2.0
sh: GNU bash, version 5.2.15(1)-release (x86_64-pc-msys)
os: Microsoft Windows [Version 10.0.19045.3324]
PS C:\Users\donal> ridk install jekyll bundler
_____ _ _____ _ _ _ ___
| __ \ | | |_ _| | | | | | |__ \
| |__) | _| |__ _ _ | | _ __ ___| |_ __ _| | | ___ _ __ ) |
| _ / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ /
| | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | | __/ | / /_
|_| \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
__/ | _
|___/ _|_ _ __ | | o __ _| _ _
| (_) | |^| | | |(_|(_)\^/_>
Can not find component "jekyll"
Can not find component "bundler"
PS C:\Users\donal>
The results of the risk version lists path: ruby31-x64 not ruby32-x64?
Hi @dfcoffin - it's 2 months since your last message. Is it all working now, or do you need some other input? If we don't hear back by 1st Nov, I will close this issue. Thanks!
Closing this for now.
I had a similar problem with warnings.
ridk install:
C:\Users\...\docs>ridk install
_____ _ _____ _ _ _ ___
| __ \ | | |_ _| | | | | | |__ \
| |__) | _| |__ _ _ | | _ __ ___| |_ __ _| | | ___ _ __ ) |
| _ / | | | '_ \| | | | | | | '_ \/ __| __/ _` | | |/ _ \ '__/ /
| | \ \ |_| | |_) | |_| |_| |_| | | \__ \ || (_| | | | __/ | / /_
|_| \_\__,_|_.__/ \__, |_____|_| |_|___/\__\__,_|_|_|\___|_||____|
__/ | _
|___/ _|_ _ __ | | o __ _| _ _
| (_) | |^| | | |(_|(_)\^/_>
1 - MSYS2 base installation
2 - MSYS2 system update (optional)
3 - MSYS2 and MINGW development toolchain
Which components shall be installed? If unsure press ENTER [1,3]
> sh -lc true
MSYS2 seems to be properly installed
Install MSYS2 and MINGW development toolchain ...
> pacman -S --needed --noconfirm autoconf autogen automake-wrapper diffutils file gawk grep libtool m4 make patch sed texinfo texinfo-tex wget mingw-w64-x86_64-binutils mingw-w64-x86_64-crt-git mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-libs mingw-w64-x86_64-headers-git mingw-w64-x86_64-libmangle-git mingw-w64-x86_64-libwinpthread-git mingw-w64-x86_64-make mingw-w64-x86_64-tools-git mingw-w64-x86_64-winpthreads-git pkgconf mingw-w64-x86_64-pkgconf
warning: autoconf-wrapper-20221207-1 is up to date -- skipping
warning: autogen-5.18.16-4 is up to date -- skipping
warning: automake-wrapper-20221207-1 is up to date -- skipping
warning: diffutils-3.9-1 is up to date -- skipping
warning: file-5.44-5 is up to date -- skipping
warning: gawk-5.2.1-2 is up to date -- skipping
warning: grep-1~3.0-6 is up to date -- skipping
warning: libtool-2.4.7-3 is up to date -- skipping
warning: m4-1.4.19-2 is up to date -- skipping
warning: make-4.4.1-1 is up to date -- skipping
warning: patch-2.7.6-2 is up to date -- skipping
warning: sed-4.9-1 is up to date -- skipping
warning: texinfo-7.0.3-1 is up to date -- skipping
warning: texinfo-tex-7.0.3-1 is up to date -- skipping
warning: wget-1.21.3-2 is up to date -- skipping
warning: mingw-w64-x86_64-binutils-2.40-2 is up to date -- skipping
warning: mingw-w64-x86_64-crt-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-12.2.0-10 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-libs-12.2.0-10 is up to date -- skipping
warning: mingw-w64-x86_64-headers-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-x86_64-libmangle-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-x86_64-libwinpthread-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-x86_64-make-4.4-2 is up to date -- skipping
warning: mingw-w64-x86_64-tools-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: mingw-w64-x86_64-winpthreads-git-10.0.0.r248.g5f566373f-1 is up to date -- skipping
warning: pkgconf-1.9.4-1 is up to date -- skipping
warning: mingw-w64-x86_64-pkgconf-1~1.8.0-2 is up to date -- skipping
there is nothing to do
Install MSYS2 and MINGW development toolchain succeeded
You can use 'ridk enable' to activate the MSYS2 tools on the command prompt.
1 - MSYS2 base installation
2 - MSYS2 system update (optional)
3 - MSYS2 and MINGW development toolchain
Which components shall be installed? If unsure press ENTER []
jekyll -v:
C:\...\docs>jekyll -v
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/resolver.rb:336:in `raise_not_found!': Could not find gem 'tzinfo (~> 2.0.5) mingw, x64_mingw, mswin, jruby' in cached gems or installed locally. (Bundler::GemNotFound)
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/resolver.rb:414:in `block in prepare_dependencies'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/resolver.rb:392:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/resolver.rb:392:in `map'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/resolver.rb:392:in `prepare_dependencies'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/resolver.rb:63:in `setup_solver'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/resolver.rb:28:in `start'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/definition.rb:626:in `start_resolution'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/definition.rb:311:in `resolve'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/definition.rb:579:in `materialize'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/definition.rb:203:in `specs'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/definition.rb:270:in `specs_for'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/runtime.rb:18:in `setup'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler.rb:162:in `setup'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.3.3/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.3.3/exe/jekyll:11:in `<top (required)>'
from C:/Ruby30-x64/bin/jekyll:25:in `load'
from C:/Ruby30-x64/bin/jekyll:25:in `<main>'
Before this I had a problem with pacman, but I didn’t save information about it.
What I tried several times:
- reinstall different versions (3.2.3, 3.0.1, 2.7, 3.1.2) (3.1.2 mentioned here)
- completely uninstall ruby: unins000.exe didn't delete the folder C:\Ruby30-x64\msys64
- clear all cache and data files (.bundle, .local dirs and other directories in home_dir that looked related to gem, jekyll, ruby, ...)
- run
bundle install
- run
bundle exec jekyll -v
instead ofjekyll -v
- and of course follow all steps of the installation instructions
What really helped me (perhaps there are unnecessary points here, but I don’t have the opportunity to check everything; with the current configuration everything works):
- clear caches
- completely remove jekyll and ruby
- install Ruby+Devkit 3.0.6-1 (x64) locally; all settings are default
- follow the installation instructions
- !!!I had another mingw installed in my PATH variable. I removed it from PATH when "Start Command Prompt with Ruby"
- then run
bundle install && bundle exec jekyll -v && bundle exec jekyll serve
- and hurray, the local server started working!
Hi @EvelinaBiserova, I saw this in your errors.
Could not find gem 'tzinfo (~> 2.0.5) mingw, x64_mingw, mswin, jruby'
I haven't installed Jekyll for a while but it looks like tzinfo
needs to be installed. It could be that for some reason, it's not in the dependency path for Jekyll.
From the command line, could you install it and see if that helps?
gem install tzinfo
Hi @EvelinaBiserova, I saw this in your errors.
Could not find gem 'tzinfo (~> 2.0.5) mingw, x64_mingw, mswin, jruby'
I haven't installed Jekyll for a while but it looks like
tzinfo
needs to be installed. It could be that for some reason, it's not in the dependency path for Jekyll.From the command line, could you install it and see if that helps?
gem install tzinfo
Dear @mohits
Good day! Thank you for your work and for keeping in touch! I'm sorry I didn't respond right away, I didn't notice your message :(
I'm not a jekyll/ruby developer, so it's possible I might be doing something wrong. Please let me know about this.
My gem list
currently shows the presence of tzinfo.
C:\...\docs>gem list
*** LOCAL GEMS ***
abbrev (default: 0.1.0)
activesupport (3.2.22.5)
addressable (2.8.6, 2.8.0)
base64 (default: 0.1.0)
benchmark (default: 0.1.1)
bigdecimal (default: 3.0.0)
bundler (2.5.9, default: 2.2.33)
cgi (default: 0.2.2)
coffee-script (2.4.1)
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.23.5)
concurrent-ruby (1.2.3, 1.1.10)
csv (default: 3.1.9)
date (default: 3.1.3)
dbm (default: 1.1.0)
debug (default: 0.2.1)
delegate (default: 0.2.0)
did_you_mean (default: 1.5.0)
digest (default: 3.0.0)
dnsruby (1.61.9)
drb (default: 2.0.5)
em-websocket (0.5.3)
english (default: 0.7.1)
erb (default: 2.2.0)
etc (default: 1.3.0)
ethon (0.15.0)
eventmachine (1.2.7 x64-mingw32)
execjs (2.8.1)
faraday (2.5.2)
faraday-net_http (3.0.0)
fcntl (default: 1.0.1)
ffi (1.16.3 x64-mingw32, 1.15.5 x64-mingw32)
fiddle (default: 1.0.8)
fileutils (default: 1.5.0)
find (default: 0.1.0)
forwardable (default: 1.3.2)
forwardable-extended (2.6.0)
gdbm (default: 2.1.0)
gemoji (3.0.1)
getoptlong (default: 0.1.1)
github-pages (227)
github-pages-health-check (1.17.9)
google-protobuf (3.25.3 x64-mingw32)
html-pipeline (2.14.3)
http_parser.rb (0.8.0)
i18n (1.14.4, 0.9.5)
io-console (default: 0.5.7)
io-nonblock (default: 0.1.0)
io-wait (default: 0.2.0)
ipaddr (default: 1.2.2)
irb (default: 1.3.5)
jekyll (4.3.3, 3.9.2)
jekyll-avatar (0.7.0)
jekyll-coffeescript (1.1.1)
jekyll-commonmark (1.4.0)
jekyll-commonmark-ghpages (0.2.0)
jekyll-default-layout (0.1.4)
jekyll-feed (0.15.1)
jekyll-gist (1.5.0)
jekyll-github-metadata (2.13.0)
jekyll-include-cache (0.2.1)
jekyll-mentions (1.6.0)
jekyll-optional-front-matter (0.3.2)
jekyll-paginate (1.1.0)
jekyll-readme-index (0.3.0)
jekyll-redirect-from (0.16.0)
jekyll-relative-links (0.6.1)
jekyll-remote-theme (0.4.3)
jekyll-sass-converter (3.0.0, 1.5.2)
jekyll-seo-tag (2.8.0)
jekyll-sitemap (1.4.0)
jekyll-swiss (1.0.0)
jekyll-theme-architect (0.2.0)
jekyll-theme-cayman (0.2.0)
jekyll-theme-dinky (0.2.0)
jekyll-theme-hacker (0.2.0)
jekyll-theme-leap-day (0.2.0)
jekyll-theme-merlot (0.2.0)
jekyll-theme-midnight (0.2.0)
jekyll-theme-minimal (0.2.0)
jekyll-theme-modernist (0.2.0)
jekyll-theme-primer (0.6.0)
jekyll-theme-slate (0.2.0)
jekyll-theme-tactile (0.2.0)
jekyll-theme-time-machine (0.2.0)
jekyll-titles-from-headings (0.5.3)
jekyll-watch (2.2.1)
jemoji (0.12.0)
json (default: 2.5.1)
kramdown (2.4.0, 2.3.2)
kramdown-parser-gfm (1.1.0)
liquid (4.0.4, 4.0.3)
listen (3.9.0, 3.7.1)
logger (default: 1.4.3)
matrix (default: 0.3.1)
mercenary (0.4.0, 0.3.6)
minima (2.5.1)
minitest (5.14.2)
multi_json (1.15.0)
mutex_m (default: 0.1.1)
net-ftp (default: 0.1.2)
net-http (default: 0.1.1)
net-imap (default: 0.1.1)
net-pop (default: 0.1.1)
net-protocol (default: 0.1.1)
net-smtp (default: 0.2.1)
nkf (default: 0.1.0)
nokogiri (1.13.8 x64-mingw32)
observer (default: 0.1.1)
octokit (4.25.1)
open-uri (default: 0.1.0)
open3 (default: 0.1.1)
openssl (default: 2.2.2)
optparse (default: 0.1.1)
ostruct (default: 0.3.1)
pathname (default: 0.1.0)
pathutil (0.16.2)
power_assert (1.2.0)
pp (default: 0.2.1)
prettyprint (default: 0.1.1)
prime (default: 0.1.2)
pstore (default: 0.1.1)
psych (default: 3.3.2)
public_suffix (5.0.5, 4.0.7)
racc (1.6.0, default: 1.5.2)
rake (13.0.3)
rb-fsevent (0.11.2, 0.11.1)
rb-inotify (0.10.1)
rbs (1.4.0)
rdoc (default: 6.3.3)
readline (default: 0.0.2)
reline (default: 0.2.5)
resolv (default: 0.2.1)
resolv-replace (default: 0.1.0)
rexml (3.2.5)
rinda (default: 0.1.1)
rouge (4.2.1, 3.26.0)
rss (0.2.9)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
safe_yaml (1.0.5)
sass (3.7.4)
sass-embedded (1.69.5 x64-mingw32)
sass-listen (4.0.0)
sawyer (0.9.2)
securerandom (default: 0.1.0)
set (default: 1.0.1)
shellwords (default: 0.1.0)
simpleidn (0.2.1)
singleton (default: 0.1.1)
stringio (default: 3.0.1)
strscan (default: 3.0.1)
tempfile (default: 0.1.1)
terminal-table (3.0.2, 1.8.0)
test-unit (3.3.7)
time (default: 0.1.1)
timeout (default: 0.1.1)
tmpdir (default: 0.1.2)
tracer (default: 0.1.1)
tsort (default: 0.1.0)
typeprof (0.15.2)
typhoeus (1.4.0)
tzinfo (2.0.6)
tzinfo-data (1.2024.1)
un (default: 0.1.0)
unf (0.1.4)
unf_ext (0.0.8.2 x64-mingw32)
unicode-display_width (2.5.0, 1.8.0)
uri (default: 0.10.2)
wdm (0.1.1)
weakref (default: 0.1.1)
webrick (1.8.1, 1.7.0)
win32ole (default: 1.8.8)
yaml (default: 0.1.1)
zlib (default: 2.0.0)
It seems I was lucky that I didn't close the console from last time, so I can say that I installed it along with bundle install
in my project directory.
C:\...\docs>bundle install
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Fetching concurrent-ruby 1.1.10
Fetching public_suffix 4.0.7
Fetching multi_json 1.15.0
Fetching coffee-script-source 1.11.1
Installing concurrent-ruby 1.1.10
Installing multi_json 1.15.0
Fetching execjs 2.8.1
Installing coffee-script-source 1.11.1
Fetching commonmarker 0.23.5
Installing public_suffix 4.0.7
Installing execjs 2.8.1
Fetching unf_ext 0.0.8.2 (x64-mingw32)
Fetching ffi 1.15.5 (x64-mingw32)
Installing commonmarker 0.23.5 with native extensions
Fetching faraday-net_http 3.0.0
Installing unf_ext 0.0.8.2 (x64-mingw32)
Installing ffi 1.15.5 (x64-mingw32)
Installing faraday-net_http 3.0.0
Fetching ruby2_keywords 0.0.5
Fetching gemoji 3.0.1
Installing ruby2_keywords 0.0.5
Fetching rb-fsevent 0.11.1
Installing gemoji 3.0.1
Installing rb-fsevent 0.11.1
Fetching liquid 4.0.3
Fetching mercenary 0.3.6
Fetching rouge 3.26.0
Installing liquid 4.0.3
Installing mercenary 0.3.6
Fetching racc 1.6.0
Installing rouge 3.26.0
Installing racc 1.6.0 with native extensions
Fetching jekyll-paginate 1.1.0
Installing jekyll-paginate 1.1.0
Fetching rubyzip 2.3.2
Installing rubyzip 2.3.2
Fetching jekyll-swiss 1.0.0
Installing jekyll-swiss 1.0.0
Fetching unicode-display_width 1.8.0
Installing unicode-display_width 1.8.0
Fetching wdm 0.1.1
Installing wdm 0.1.1 with native extensions
Fetching webrick 1.7.0
Installing webrick 1.7.0
Fetching addressable 2.8.0
Installing addressable 2.8.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching i18n 0.9.5
Fetching tzinfo 2.0.6 (was 1.2.10)
Installing i18n 0.9.5
Installing tzinfo 2.0.6 (was 1.2.10)
Fetching unf 0.1.4
Installing unf 0.1.4
Fetching faraday 2.5.2
Fetching kramdown 2.3.2
Installing faraday 2.5.2
Installing kramdown 2.3.2
Fetching ethon 0.15.0
Installing ethon 0.15.0
Fetching terminal-table 1.8.0
Installing terminal-table 1.8.0
Fetching nokogiri 1.13.8 (x64-mingw32)
Installing nokogiri 1.13.8 (x64-mingw32)
Fetching jekyll-coffeescript 1.1.1
Installing jekyll-coffeescript 1.1.1
Fetching tzinfo-data 1.2024.1
Installing tzinfo-data 1.2024.1
Fetching simpleidn 0.2.1
Installing simpleidn 0.2.1
Fetching activesupport 3.2.22.5 (was 6.0.5.1)
Fetching sawyer 0.9.2
Installing activesupport 3.2.22.5 (was 6.0.5.1)
Installing sawyer 0.9.2
Fetching typhoeus 1.4.0
Installing typhoeus 1.4.0
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching listen 3.7.1
Fetching jekyll-commonmark 1.4.0
Installing listen 3.7.1
Installing jekyll-commonmark 1.4.0
Fetching dnsruby 1.61.9
Fetching octokit 4.25.1
Installing octokit 4.25.1
Installing dnsruby 1.61.9
Fetching sass 3.7.4
Installing sass 3.7.4
Fetching html-pipeline 2.14.3 (was 2.14.2)
Installing html-pipeline 2.14.3 (was 2.14.2)
Fetching jekyll-gist 1.5.0
Installing jekyll-gist 1.5.0
Fetching github-pages-health-check 1.17.9
Installing github-pages-health-check 1.17.9
Fetching jekyll-sass-converter 1.5.2
Installing jekyll-sass-converter 1.5.2
Fetching jekyll 3.9.2
Installing jekyll 3.9.2
Fetching jekyll-avatar 0.7.0
Fetching jekyll-commonmark-ghpages 0.2.0
Fetching jekyll-default-layout 0.1.4
Fetching jekyll-feed 0.15.1
Installing jekyll-avatar 0.7.0
Installing jekyll-commonmark-ghpages 0.2.0
Fetching jekyll-github-metadata 2.13.0
Installing jekyll-default-layout 0.1.4
Fetching jekyll-include-cache 0.2.1
Fetching jekyll-mentions 1.6.0
Installing jekyll-feed 0.15.1
Fetching jekyll-optional-front-matter 0.3.2
Installing jekyll-github-metadata 2.13.0
Installing jekyll-include-cache 0.2.1
Fetching jekyll-readme-index 0.3.0
Fetching jekyll-redirect-from 0.16.0
Installing jekyll-mentions 1.6.0
Fetching jekyll-relative-links 0.6.1
Installing jekyll-optional-front-matter 0.3.2
Fetching jekyll-remote-theme 0.4.3
Installing jekyll-readme-index 0.3.0
Fetching jekyll-seo-tag 2.8.0
Installing jekyll-redirect-from 0.16.0
Installing jekyll-relative-links 0.6.1
Fetching jekyll-sitemap 1.4.0
Installing jekyll-remote-theme 0.4.3
Fetching jekyll-titles-from-headings 0.5.3
Fetching jemoji 0.12.0
Installing jekyll-seo-tag 2.8.0
Installing jekyll-sitemap 1.4.0
Fetching jekyll-theme-architect 0.2.0
Installing jekyll-titles-from-headings 0.5.3
Fetching jekyll-theme-cayman 0.2.0
Installing jemoji 0.12.0
Fetching jekyll-theme-dinky 0.2.0
Fetching jekyll-theme-hacker 0.2.0
Installing jekyll-theme-architect 0.2.0
Fetching jekyll-theme-leap-day 0.2.0
Installing jekyll-theme-cayman 0.2.0
Installing jekyll-theme-dinky 0.2.0
Fetching jekyll-theme-merlot 0.2.0
Fetching jekyll-theme-midnight 0.2.0
Installing jekyll-theme-hacker 0.2.0
Fetching jekyll-theme-minimal 0.2.0
Installing jekyll-theme-leap-day 0.2.0
Installing jekyll-theme-merlot 0.2.0
Fetching jekyll-theme-modernist 0.2.0
Installing jekyll-theme-minimal 0.2.0
Installing jekyll-theme-midnight 0.2.0
Installing jekyll-theme-modernist 0.2.0
Fetching jekyll-theme-primer 0.6.0
Fetching jekyll-theme-slate 0.2.0
Fetching jekyll-theme-tactile 0.2.0
Installing jekyll-theme-primer 0.6.0
Installing jekyll-theme-slate 0.2.0
Installing jekyll-theme-tactile 0.2.0
Fetching jekyll-theme-time-machine 0.2.0
Fetching minima 2.5.1
Installing jekyll-theme-time-machine 0.2.0
Installing minima 2.5.1
Fetching github-pages 227
Installing github-pages 227
Bundle complete! 7 Gemfile dependencies, 92 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from dnsruby:
Installing dnsruby...
For issues and source code: https://github.com/alexdalitz/dnsruby
For general discussion (please tell us how you use dnsruby): https://groups.google.com/forum/#!forum/dnsruby
Post-install message from sass:
Ruby Sass has reached end-of-life and should no longer be used.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
https://sass-lang.com/blog/posts/7828841
Post-install message from html-pipeline:
-------------------------------------------------
Thank you for installing html-pipeline!
You must bundle Filter gem dependencies.
See html-pipeline README.md for more details.
https://github.com/jch/html-pipeline#dependencies
-------------------------------------------------
Post-install message from rubyzip:
RubyZip 3.0 is coming!
**********************
The public API of some Rubyzip classes has been modernized to use named
parameters for optional arguments. Please check your usage of the
following classes:
* `Zip::File`
* `Zip::Entry`
* `Zip::InputStream`
* `Zip::OutputStream`
Please ensure that your Gemfiles and .gemspecs are suitably restrictive
to avoid an unexpected breakage when 3.0 is released (e.g. ~> 2.3.0).
See https://github.com/rubyzip/rubyzip for details. The Changelog also
lists other enhancements and bugfixes that have been implemented since
version 2.3.0.
After that I tried to check the functionality of jekyll and the error was the following
C:\...\docs>jekyll -v
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/runtime.rb:304:in `check_for_activated_spec!': You have already activated concurrent-ruby 1.2.3, but your Gemfile requires concurrent-ruby 1.1.10. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/runtime.rb:25:in `block in setup'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:191:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/spec_set.rb:191:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/runtime.rb:24:in `map'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler/runtime.rb:24:in `setup'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.5.9/lib/bundler.rb:162:in `setup'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.3.3/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.3.3/exe/jekyll:11:in `<top (required)>'
from C:/Ruby30-x64/bin/jekyll:25:in `load'
from C:/Ruby30-x64/bin/jekyll:25:in `<main>'
I prepended bundle
and everything worked.
C:\...\docs>bundle exec jekyll serve
Configuration file: C:/.../docs/_config.yml
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
Source: C:/.../docs
Destination: C:/.../docs/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 5.085 seconds.
Auto-regeneration: enabled for 'C:/.../docs'
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
So for now everything is working.
However, the suggested command gem install tzinfo
produced the following:
C:\...\docs>gem install tzinfo
Successfully installed tzinfo-2.0.6
Parsing documentation for tzinfo-2.0.6
Installing ri documentation for tzinfo-2.0.6
Done installing documentation for tzinfo after 9 seconds
1 gem installed
Hope this helps us.
Thank you for your time
Hi @EvelinaBiserova, thanks for getting back.
Let's hope it all works. Please update us either way, and I will close the issue again.
I am closing this since we have not heard back from @EvelinaBiserova in a few months.