While Setting up development server using make site command returning some error

For running the project, I fored the repo and followed following commands to start development server

git clone git@github.com:malaviya-parth/getnighthawk.git
$ cd getnighthawk/
$ cd docs
$ git remote add upstream https://github.com/layer5io/getnighthawk.git
$ git fetch upstream
$ git checkout master
$ git merge upstream/master
$ bundle install

Untill here everything worked fine but while executing below command it gave me error

$ make site

Error:

bundle exec jekyll serve --drafts --livereload --config _config.yml
process_begin: CreateProcess(NULL, bundle exec jekyll serve --drafts --livereload --config _config.yml, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:6: site] Error 2

Suggestion by community member
Later as recommended by one of the community member I ran commands

gem install tzinfo
gem install tzinfo-data

though it gave the same error

Screenshots:
Git Bash

@Parth.Malaviya , Thank you for asking this on discuss forum .
A quick question - Do you have jekyll installed on your system?

Yes, ran command: jekyll -version
returned : jekyll 4.3.2

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

@asubedy

These are some steps that I followed

  • make site gave error of bundle: command not found
  • so I checked whether it is installed or not, it is their install as reflected by bundle --version
  • Later, to be assured I agiain installed bundle and ran make site command again but still the same error

  • Although running make site in docs is fine as well as there there is Makefile inside docs as well.

hey @Parth.Malaviya make sure you run gem bundle install before make site command. Let me know if that work

@Yash_Sharma
I tried that, well gem bundle install it gave output something like:


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.

@Parth.Malaviya Instead of using make site, try running the jekyll serve command directly to see if it works without the Makefile:

bundle exec jekyll serve --drafts --livereload --config _config.yml

If this works, it might indicate an issue with the Makefile itself.

Well tried that as well in git Bash terminal under VSCode it gave error like below:

$ bundle exec jekyll serve --drafts --livereload --config _config.yml

Error:

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:

gem list

Return:

$ gem list

*** LOCAL GEMS ***

abbrev (default: 0.1.1)
addressable (2.8.0)
base64 (default: 0.1.1)
benchmark (default: 0.2.1)
bigdecimal (default: 3.1.3)
bundle (0.0.1)
bundler (2.4.18, default: 2.4.10, 2.2.9)
cgi (default: 0.3.6)
colorator (1.1.0)
concurrent-ruby (1.1.8)
cssminify2 (2.0.1)
csv (default: 3.2.6)
date (default: 3.3.3)
delegate (default: 0.3.0)
did_you_mean (default: 1.6.3)
digest (default: 3.1.1)
drb (default: 2.1.1)
em-websocket (0.5.2)
english (default: 0.7.2)
erb (default: 4.0.2)
error_highlight (default: 0.5.1)
etc (default: 1.4.2)
eventmachine (1.2.7)
execjs (2.7.0)
fcntl (default: 1.0.2)
ffi (1.15.5, 1.15.0)
fiddle (default: 1.1.1)
fileutils (default: 1.7.0)
find (default: 0.1.1)
forwardable (default: 1.3.3)
forwardable-extended (2.6.0)
getoptlong (default: 0.2.0)
htmlcompressor (0.4.0)
http_parser.rb (0.6.0)
i18n (1.8.10)
io-console (default: 0.6.0)
io-nonblock (default: 0.2.0)
io-wait (default: 0.3.0)
ipaddr (default: 1.2.5)
irb (default: 1.6.2)
jekyll (4.3.2, 4.1.1)
jekyll-archives (2.2.1)
jekyll-feed (0.15.1)
jekyll-minifier (0.1.10)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.16.0)
jekyll-sass-converter (2.1.0)
jekyll-seo-tag (2.7.1)
jekyll-sitemap (1.4.0)
jekyll-watch (2.2.1)
json (default: 2.6.3, 2.5.1)
json-minify (0.0.3)
kramdown (2.3.1)
kramdown-parser-gfm (1.1.0)
liquid (4.0.3)
listen (3.5.1)
logger (default: 1.5.3)
mercenary (0.4.0)
mutex_m (default: 0.1.2)
net-http (default: 0.3.2)
net-protocol (default: 0.2.1)
nkf (default: 0.1.2)
observer (default: 0.1.1)
open-uri (default: 0.3.0)
open3 (default: 0.1.2)
openssl (default: 3.1.0)
optparse (default: 0.3.1)
ostruct (default: 0.5.5)
pathname (default: 0.2.1)
pathutil (0.16.2)
pp (default: 0.4.0)
prettyprint (default: 0.1.1)
pstore (default: 0.1.2)
psych (default: 5.0.1)
public_suffix (4.0.6)
racc (default: 1.6.2)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
rdoc (default: 6.5.0)
readline (default: 0.0.3)
reline (default: 0.3.2)
resolv (default: 0.2.2)
resolv-replace (default: 0.1.1)
rexml (3.2.5)
rinda (default: 0.1.1)
rouge (3.26.0)
ruby2_keywords (default: 0.0.5)
safe_yaml (1.0.5)
sassc (2.4.0)
securerandom (default: 0.2.2)
set (default: 1.0.3)
shellwords (default: 0.1.0)
singleton (default: 0.1.1)
stringio (default: 3.0.4)
strscan (default: 3.0.5)
syntax_suggest (default: 1.0.2)
tempfile (default: 0.1.3)
terminal-table (1.8.0)
thread_safe (0.3.6)
time (default: 0.2.2)
timeout (default: 0.3.1)
tmpdir (default: 0.1.3)
tsort (default: 0.1.1)
tzinfo (2.0.6, 1.2.10)
tzinfo-data (1.2023.3, 1.2021.1)
uglifier (4.2.0)
un (default: 0.2.1)
unicode-display_width (1.7.0)
uri (default: 0.12.1)
weakref (default: 0.1.2)
webrick (1.7.0)
win32ole (default: 1.8.9)
yaml (default: 0.2.1)
zlib (default: 3.0.0)

Additional

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

I am also encountering the same issue on my end

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:

  1. Open your project’s Gemfile.
  2. Add the following line:
gem 'tzinfo-data'
  1. Save the Gemfile.
  2. Run the following command in your terminal to install the gem:
bundle install
  1. 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 :wave:
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 : )

2 Likes

Hey @gopi.vaibhav, it worked sucessfully. Now the make site is up and running.
Thank you

1 Like

Can you please share your complete code in Gemfile?