Hi guys, I’m trying to make my first Jekyll page from the scratch but I am finding an annoying error which I cannot troubleshoot
jekyll build
jekyll 3.8.6 | Error: undefined method `process_with_graceful_fail' for Jekyll::Commands::Build:Class
Traceback (most recent call last):
8: from /usr/local/bin/jekyll:23:in `<main>'
7: from /usr/local/bin/jekyll:23:in `load'
6: from /var/lib/gems/2.7.0/gems/jekyll-4.1.1/exe/jekyll:15:in `<top (required)>'
5: from /var/lib/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
4: from /var/lib/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
3: from /var/lib/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
2: from /var/lib/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
1: from /var/lib/gems/2.7.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
/var/lib/gems/2.7.0/gems/jekyll-4.1.1/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program': undefined method `process_with_graceful_fail' for Jekyll::Commands::Build:Class (NoMethodError)
I’ve seen another guy having the same problem, I’m gonna paste some of my specs to see if you can figure out what is wrong in my system
As It may be something related to PATH environment of gem or ruby
$which jekyll
/usr/local/bin/jekyll
$ which ruby
/usr/bin/ruby
$ ruby --version
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
$ which gem
/usr/bin/gem
$ gem --version
3.1.2
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.1.2
- RUBY VERSION: 2.7.0 (2019-12-25 patchlevel 0) [x86_64-linux-gnu]
- INSTALLATION DIRECTORY: /var/lib/gems/2.7.0
- USER INSTALLATION DIRECTORY: /home/kali/.gem/ruby/2.7.0
- RUBY EXECUTABLE: /usr/bin/ruby2.7
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /usr/local/bin
- SPEC CACHE DIRECTORY: /home/kali/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /var/lib/gems/2.7.0
- /home/kali/.gem/ruby/2.7.0
- /usr/lib/ruby/gems/2.7.0
- /usr/share/rubygems-integration/2.7.0
- /usr/share/rubygems-integration/all
- /usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /home/kali/.local/bin
- /usr/local/sbin
- /usr/sbin
- /sbin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/local/games
- /usr/games
- /usr/local/go/bin
- /home/kali/.local/bin
What would you do in my situation? Thanks!!