I’m running into a pathing(?) issue with a local build. Jekyll works fine if I run it w/o paginate in the config.yml, but once it’s added I get:
bundler: failed to load command: jekyll (/Users/xxxxx/code/xxxxx/bundle/cache/ruby/2.3.0/bin/jekyll)
Do I need to fix pathing to my version of Jekyll? Or is this some legacy part of pagination? It had been working fine until a few days ago, so also wondering if this is a system issue… for what it’s worth my Gemfile and full config below:
Gemfile
source "https://rubygems.org"
ruby RUBY_VERSION
gem "jekyll", "~> 3.0"
gem "minima", "~> 2.0"
source 'https://rubygems.org'
group :jekyll_plugins do
gem "jekyll-paginate-v2", "~> 1.7"
gem "jekyll-feed"
end
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
Your error message itself is unrelated to paginate. Can you inform us what command you ran before the error and a longer log of errors?
Also check your PATH is set in your .zshrc or .zshrc in linux or mac, to include the ruby 2.3.0/bin directory.
Delete your cache folder and do a fresh install. You should be running Jekyll and paginate in side your project as vendor/bundle/ruby/…/jekyll. Not a bundler cache dir.
Make sure you run bundle config
bundle config set --local path vendor/bundle
And then bundle install.
Also your ruby and Jekyll versions can be updated. Ruby 2.6 or 2.7. And in your Gemfile use ~> 3.9 to match GH Pages.
Maybe update Bundle itself
Also make sure to change gems: in your config to plugins: as that is the new syntax.
Go to ~ or somewhere outside the project directory
Activate ruby environment e.g. ruby 2.3
Install bundler using rvm
Go to project folder. Run bundle config and install commands. To install jekyll and other gems
Run bundle exec jekyll serve