@Parth.Malaviya the command make site should be run in the root folder and not on the docs folder. Could you try running the command make site in the root folder and update the results.
even if I do it under docs same error.
Also, the actual command is bundle install which I ran as I provided in the question description.
Maybe a dumb question but I use VSCode and run these commands under the GitBash terminal in VSCode, Probably this couldn’t be the issue but still if it causes please clarify.
@Parth.Malaviya Make sure you already have bundler. If not, you can install it using the gem install bundler command. After installing Bundler, you can use the bundle install command to install gems specified in Gemfiles.
Coming to your next question, gitbash vs VsCode terminal, Git Bash and the integrated terminal in VSCode are not the same, but they serve similar purposes and provide a command-line interface for interacting with your system and performing various tasks. I would suggest you to stick to VS Codes integrated terminal as it would be easy to keep track of your activity in the repository.
Well bundler is already installed on my pc, and I had run the bundle install command as well which installed all dependencies. After that make site command not working.
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
bundler: command not found: Jekyll
Install missing gem executables with `bundle install`
As I already did bundle install so just for checking purposes I did a gem list to check all installed gems where all bundle gems are shown installed as below
Command:
I ran the same commands in PowerShell terminal in VSCode which gave the error like this
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Configuration file: D:/NightHawk/getnighthawk/docs/_config.yml
Dependency Error: Yikes! It looks like you don't have tzinfo or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the tzinfo gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- tzinfo' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 4.1.1 | Error: tzinfo
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:73:in `rescue in block in require_with_graceful_fail': tzinfo (Jekyll::Errors::MissingDependencyException)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:58:in `block in require_with_graceful_fail'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:57:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/utils/win_tz.rb:15:in `calculate'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:135:in `set_timezone'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:123:in `block in configuration'
from <internal:kernel>:90:in `tap'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:122:in `configuration'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/command.rb:44:in `configuration_from_options'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/commands/serve.rb:83:in `block (2 levels) in init_with_program'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/exe/jekyll:15:in `<top (required)>'
from C:/Ruby32-x64/bin/jekyll:25:in `load'
from C:/Ruby32-x64/bin/jekyll:25:in `<main>'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:60:in `require': cannot load such file -- tzinfo (LoadError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:60:in `block in require_with_graceful_fail'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:57:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/utils/win_tz.rb:15:in `calculate'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:135:in `set_timezone'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:123:in `block in configuration'
from <internal:kernel>:90:in `tap'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:122:in `configuration'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/command.rb:44:in `configuration_from_options'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/commands/serve.rb:83:in `block (2 levels) in init_with_program'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/exe/jekyll:15:in `<top (required)>'
from C:/Ruby32-x64/bin/jekyll:25:in `load'
from C:/Ruby32-x64/bin/jekyll:25:in `<main>'
in both cases whether I run make site or I run $ bundle exec jekyll serve --drafts --livereload --config _config.yml
PS C:\Users\Akhil\Desktop\getnighthawk\docs> make site
bundle exec jekyll serve --drafts --livereload --config _config.yml
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Configuration file: C:/Users/Akhil/Desktop/getnighthawk/docs/_config.yml
Dependency Error: Yikes! It looks like you don't have tzinfo or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the tzinfo gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- tzinfo' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 4.1.1 | Error: tzinfo
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:73:in `rescue in block in require_with_graceful_fail': tzinfo (Jekyll::Errors::MissingDependencyException)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:58:in `block in require_with_graceful_fail'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:57:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/utils/win_tz.rb:15:in `calculate'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:135:in `set_timezone'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:123:in `block in configuration'
from <internal:kernel>:90:in `tap'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:122:in `configuration'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/command.rb:44:in `configuration_from_options'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/commands/serve.rb:83:in `block (2 levels) in init_with_program'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/exe/jekyll:15:in `<top (required)>'
from C:/Ruby32-x64/bin/jekyll:25:in `load'
from C:/Ruby32-x64/bin/jekyll:25:in `<main>'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:60:in `require': cannot load such file -- tzinfo (LoadError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:60:in `block in require_with_graceful_fail'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:57:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/utils/win_tz.rb:15:in `calculate'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:135:in `set_timezone'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:123:in `block in configuration'
from <internal:kernel>:90:in `tap'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll.rb:122:in `configuration'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/command.rb:44:in `configuration_from_options'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/lib/jekyll/commands/serve.rb:83:in `block (2 levels) in init_with_program'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-4.1.1/exe/jekyll:15:in `<top (required)>'
from C:/Ruby32-x64/bin/jekyll:25:in `load'
from C:/Ruby32-x64/bin/jekyll:25:in `<main>'
make: *** [Makefile:6: site] Error 1
Hey @Akhilender_Bongirwar, The error you’re encountering is related to the absence of the “tzinfo” gem or its dependencies. “tzinfo” deals with time zones, and it’s required by Jekyll to properly manage time-related functionalities.
As you are using Bundler, you can also add “tzinfo-data” to your project’s Gemfile and run bundle install to ensure the gem is included in your project’s dependencies:
Open your project’s Gemfile.
Add the following line:
gem 'tzinfo-data'
Save the Gemfile.
Run the following command in your terminal to install the gem:
bundle install
After installing the gem, try running the make site command again.
If this doesn’t work or you are finding some hardships we can huddle it up
Hi @Yash_Sharma, I already have the tzinfo in my Gemfile.
The contents of the Gemfile are
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.1.1"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
#gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
#gem "jekyll-assets"
gem "jekyll-minifier"
gem "jekyll-sitemap"
gem "jekyll-seo-tag"
gem "jekyll-redirect-from"
gem "jekyll-archives"
gem "jekyll-feed"
gem "jekyll-paginate"
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
# gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
gem "webrick", "~> 1.7"
Is there any dependencies of tzinfo missing, which I should add?
Hey @Akhilender_Bongirwar@Parth.Malaviya
Try adding the below lines in your Gemfile separately at the EOF - gem "tzinfo" gem "tzinfo-data"
And run the command, bundle install or bundle update
It will definitely work as I did the same when I got this error and it worked fine : )