Hey,
Yesterday, I installed Jekyll for the first time and wanted to test it. I’m just having a problem executing the command to create the website. I’m getting the following message in the terminal:
[simon@simon-PC docs]$ bundle exec jekyll build
Configuration file: /home/simon/docs/_config.yml
Source: /home/simon/docs
Destination: /home/simon/docs/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
Liquid Exception: undefined method `each' for #<Liquid::Registers:0x000055f86f3f3370 @static={:cached_partials=>{}, :file_system=>#<Liquid::BlankFileSystem:0x000055f86e0bad30>, :template_factory=>#<Liquid::TemplateFactory:0x000055f86f3f31e0>, :site=>#<Jekyll::Site @source=/home/simon/docs>, :page=>{ "next": null, "path": "_posts/2023-09-23-welcome-to-jekyll.markdown", "id": "/jekyll/update/2023/09/23/welcome-to-jekyll", "content": "<p>You’ll find this post in your <code class=\"language-plaintext highlighter-rouge\">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class=\"language-plaintext highlighter-rouge\">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>\n\n<p>Jekyll requires blog post files to be named according to the following format:</p>\n\n<p><code class=\"language-plaintext highlighter-rouge\">YEAR-MONTH-DAY-title.MARKUP</code></p>\n\n<p>Where <code class=\"language-plaintext highlighter-rouge\">YEAR</code> is a four-digit number, <code class=\"language-plaintext highlighter-rouge\">MONTH</code> and <code class=\"language-plaintext highlighter-rouge\">DAY</code> are both two-digit numbers, and <code class=\"language-plaintext highlighter-rouge\">MARKUP</code> is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>\n\n<p>Jekyll also offers powerful support for code snippets:</p>\n\n<figure class=\"highlight\"><pre><code class=\"language-ruby\" data-lang=\"ruby\"><span class=\"k\">def</span> <span class=\"nf\">print_hi</span><span class=\"p\">(</span><span class=\"nb\">name</span><span class=\"p\">)</span>\n <span class=\"nb\">puts</span> <span class=\"s2\">\"Hi, </span><span class=\"si\">#{</span><span class=\"nb\">name</span><span class=\"si\">}</span><span class=\"s2\">\"</span>\n<span class=\"k\">end</span>\n<span class=\"n\">print_hi</span><span class=\"p\">(</span><span class=\"s1\">'Tom'</span><span class=\"p\">)</span>\n<span class=\"c1\">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>\n\n<p>Check out the <a href=\"https://jekyllrb.com/docs/home\">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href=\"https://github.com/jekyll/jekyll\">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href=\"https://talk.jekyllrb.com/\">Jekyll Talk</a>.</p>\n\n", "output": null, "date": "2023-09-23 21:46:43 +0200", "tags": [ ], "collection": "posts", "url": "/jekyll/update/2023/09/23/welcome-to-jekyll.html", "excerpt": "<p>You’ll find this post in your <code class=\"language-plaintext highlighter-rouge\">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class=\"language-plaintext highlighter-rouge\">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>\n", "previous": null, "title": "Welcome to Jekyll!", "categories": [ "jekyll", "update" ], "relative_path": "_posts/2023-09-23-welcome-to-jekyll.markdown", "name": "2023-09-23-welcome-to-jekyll.markdown", "draft": false, "layout": "post", "slug": "welcome-to-jekyll", "ext": ".markdown" }}, @changes={}> in /usr/lib/ruby/gems/3.0.0/gems/minima-2.5.1/_layouts/default.html
------------------------------------------------
Jekyll 4.3.2 Please append `--trace` to the `build` command
for any additional information or backtrace.
------------------------------------------------
/usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:176:in `render': undefined method `each' for #<Liquid::Registers:0x000055f86f3f3370 @static={:cached_partials=>{}, :file_system=>#<Liquid::BlankFileSystem:0x000055f86e0bad30>, :template_factory=>#<Liquid::TemplateFactory:0x000055f86f3f31e0>, :site=>#<Jekyll::Site @source=/home/simon/docs>, :page=>{ (NoMethodError)
"next": null,
"path": "_posts/2023-09-23-welcome-to-jekyll.markdown",
"id": "/jekyll/update/2023/09/23/welcome-to-jekyll",
"content": "<p>You’ll find this post in your <code class=\\"language-plaintext highlighter-rouge\\">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class=\\"language-plaintext highlighter-rouge\\">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>\\n\\n<p>Jekyll requires blog post files to be named according to the following format:</p>\\n\\n<p><code class=\\"language-plaintext highlighter-rouge\\">YEAR-MONTH-DAY-title.MARKUP</code></p>\\n\\n<p>Where <code class=\\"language-plaintext highlighter-rouge\\">YEAR</code> is a four-digit number, <code class=\\"language-plaintext highlighter-rouge\\">MONTH</code> and <code class=\\"language-plaintext highlighter-rouge\\">DAY</code> are both two-digit numbers, and <code class=\\"language-plaintext highlighter-rouge\\">MARKUP</code> is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.</p>\\n\\n<p>Jekyll also offers powerful support for code snippets:</p>\\n\\n<figure class=\\"highlight\\"><pre><code class=\\"language-ruby\\" data-lang=\\"ruby\\"><span class=\\"k\\">def</span> <span class=\\"nf\\">print_hi</span><span class=\\"p\\">(</span><span class=\\"nb\\">name</span><span class=\\"p\\">)</span>\\n <span class=\\"nb\\">puts</span> <span class=\\"s2\\">\\"Hi, </span><span class=\\"si\\">#{</span><span class=\\"nb\\">name</span><span class=\\"si\\">}</span><span class=\\"s2\\">\\"</span>\\n<span class=\\"k\\">end</span>\\n<span class=\\"n\\">print_hi</span><span class=\\"p\\">(</span><span class=\\"s1\\">'Tom'</span><span class=\\"p\\">)</span>\\n<span class=\\"c1\\">#=> prints 'Hi, Tom' to STDOUT.</span></code></pre></figure>\\n\\n<p>Check out the <a href=\\"https://jekyllrb.com/docs/home\\">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href=\\"https://github.com/jekyll/jekyll\\">Jekyll’s GitHub repo</a>. If you have questions, you can ask them on <a href=\\"https://talk.jekyllrb.com/\\">Jekyll Talk</a>.</p>\\n\\n",
"output": null,
"date": "2023-09-23 21:46:43 +0200",
"tags": [
],
"collection": "posts",
"url": "/jekyll/update/2023/09/23/welcome-to-jekyll.html",
"excerpt": "<p>You’ll find this post in your <code class=\\"language-plaintext highlighter-rouge\\">_posts</code> directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run <code class=\\"language-plaintext highlighter-rouge\\">jekyll serve</code>, which launches a web server and auto-regenerates your site when a file is updated.</p>\\n",
"previous": null,
"title": "Welcome to Jekyll!",
"categories": [
"jekyll",
"update"
],
"relative_path": "_posts/2023-09-23-welcome-to-jekyll.markdown",
"name": "2023-09-23-welcome-to-jekyll.markdown",
"draft": false,
"layout": "post",
"slug": "welcome-to-jekyll",
"ext": ".markdown"
}}, @changes={}>
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:204:in `render!'
from /usr/lib/ruby/gems/3.0.0/gems/jekyll-seo-tag-2.8.0/lib/jekyll-seo-tag.rb:36:in `render'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/tag.rb:51:in `render_to_output_buffer'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:80:in `render_node'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:230:in `render_node'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:213:in `render_to_output_buffer'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/document.rb:41:in `render_to_output_buffer'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:194:in `render'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:204:in `render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:39:in `block (3 levels) in render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:59:in `measure_counts'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:38:in `block (2 levels) in render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:63:in `measure_bytes'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:37:in `block in render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:70:in `measure_time'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:36:in `render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/inclusion.rb:16:in `render'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/tags/include.rb:208:in `block in render'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/context.rb:134:in `stack'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/tags/include.rb:206:in `render'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/tag.rb:51:in `render_to_output_buffer'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:80:in `render_node'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:230:in `render_node'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/block_body.rb:213:in `render_to_output_buffer'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/document.rb:41:in `render_to_output_buffer'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:194:in `render'
from /usr/lib/ruby/gems/3.0.0/gems/liquid-5.4.0/lib/liquid/template.rb:204:in `render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:39:in `block (3 levels) in render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:59:in `measure_counts'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:38:in `block (2 levels) in render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:63:in `measure_bytes'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:37:in `block in render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:70:in `measure_time'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/liquid_renderer/file.rb:36:in `render!'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:129:in `render_liquid'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:192:in `render_layout'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:161:in `place_in_layouts'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:93:in `render_document'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/renderer.rb:63:in `run'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:572:in `render_regenerated'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:557:in `block (2 levels) in render_docs'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `each'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:556:in `block in render_docs'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `each_value'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:555:in `render_docs'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:210:in `render'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/site.rb:80:in `process'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:28:in `process_site'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:65:in `build'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:36:in `process'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `each'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from /usr/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/jekyll-4.3.2/exe/jekyll:15:in `<top (required)>'
from /usr/bin/jekyll:25:in `load'
from /usr/bin/jekyll:25:in `<top (required)>'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:58:in `load'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/cli/exec.rb:23:in `run'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/cli.rb:492:in `exec'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/cli.rb:34:in `dispatch'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/cli.rb:28:in `start'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/exe/bundle:37:in `block in <top (required)>'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /home/simon/.local/share/gem/ruby/3.0.0/gems/bundler-2.4.19/exe/bundle:29:in `<top (required)>'
from /usr/bin/bundle:25:in `load'
from /usr/bin/bundle:25:in `<main>'
As OS im using Linux (EndeavourOS).
I don’t know how to fix these problem, so I decided to ask everyone here to guide me through these steps. Any suggestions on how I can fix this?