Having an issue with bundler for hosting on macOS 10.15

This project requires bundler 1.15, I installed bundler 1.15 and bundler -v outputs

Bundler version 1.15.0
The latest bundler is 2.2.0.rc.2, but you are currently running 1.15.0.
To update, run gem install bundler --pre

Then I get this error when I run “bundle exec jekyll serve”

Could not find gem ‘jekyll-redirect-from’ in any of the gem sources listed in your Gemfile.

Run bundle install to install missing gems.

I run "bundle install and I get this

Fetching gem metadata from https://rubygems.org/
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies…
Bundler could not find compatible versions for gem “bundler”:
In Gemfile:
bundler (~> 1.15)

Current Bundler version:
bundler (2.1.4)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running gem install bundler?

Could not find gem ‘bundler (~> 1.15)’ in any of the relevant sources:
the local ruby installation

Even when I have bundler 1.15. Any solutions? Thanks in advance.

In somewhat similar situation I was able to solve it by deleting the version requirements in my _config.yml file.

Did that and still the same error after when I ran “bundle install”

One hack if you control the repo is to delete the bundle version at the end of Gemfile.lock that worked for me. It looks like it says 2.1.4

But I also found out that requiring a certain version of Bundler based on the lock file.

If you try to use Bundler 2 on an application that needs Bundler 1, and you also don’t have Bundler 1 installed at all,

https://bundler.io/guides/bundler_2_upgrade.html

If you upgrade to a newer version of bundler then this is solved. That means that bundler 2.x installed will work with a project that has 1.X or 2.X in the lock file.

gem install bundler -v "~>2"

Maybe

gem update bundler 

I’d also recommend always using the --user-install flag when installing and updating gems for your user. Otherwise you have to use sudo and so end up installing gems for root user and not for your user at ~/.gems or similar

I suppose its something with my ruby install because of the “Could not find gem ‘bundler (~> 1.15)’ in any of the relevant sources:
the local ruby installation” error?

Oh I misunderstood the first message.

It is weird to list Bundler in a Gemfile.
I’d say take that line out if the Gemfile.
And ideally make sure you have bundler 2.x installed at the user level.

Your Gemfile.lock file will say installed with Bundler x.x but you won’t be affected on the latest bundler.

Check these are all available

gem -v
bundler -v

If the 2nd doesn’t work then run the install command I gave plus also edit your PATH in .zshrc or .bashrc to make sure you can run bundler from your user gems from anywhere

I wrote detailed steps here

Delete any mention of bundle in your Gemfiles. And then bundle install

Share a link to your repo. I’d like to see the Gemfile and Gemfile.lock

It looks like you have jekyll-redirect-from in your config but it’s not installed.

Make sure this is in Gemfile

gem 'jekyll-redirect-from'

Then bundle install and then serve

Also make sure you configure bundler as per my instructions so gems go to vendor dir inside the repo

  Dependency Error: Yikes! It looks like you don't have jekyll-paginate or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-paginate' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.9.0 | Error:  jekyll-paginate
Traceback (most recent call last):
	36: from /usr/local/opt/ruby/bin/bundle:23:in `<main>'
	35: from /usr/local/opt/ruby/bin/bundle:23:in `load'
	34: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
	33: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/friendly_errors.rb:123:in `with_friendly_errors'
	32: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
	31: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli.rb:24:in `start'
	30: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
	29: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
	28: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
	27: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	26: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	25: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli.rb:476:in `exec'
	24: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli/exec.rb:28:in `run'
	23: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'
	22: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `load'
	21: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/bin/jekyll:23:in `<top (required)>'
	20: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/bin/jekyll:23:in `load'
	19: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/exe/jekyll:15:in `<top (required)>'
	18: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
	17: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
	16: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
	15: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
	14: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
	13: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
	12: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `start'
	11: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `each'
	10: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `block in start'
	 9: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/build.rb:30:in `process'
	 8: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/build.rb:30:in `new'
	 7: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/site.rb:32:in `initialize'
	 6: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/site.rb:114:in `setup'
	 5: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/plugin_manager.rb:22:in `conscientious_require'
	 4: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/plugin_manager.rb:30:in `require_gems'
	 3: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/external.rb:55:in `require_with_graceful_fail'
	 2: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/external.rb:55:in `each'
	 1: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/external.rb:58:in `block in require_with_graceful_fail'
/Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/external.rb:58:in `require': cannot load such file -- jekyll-paginate (LoadError)
	36: from /usr/local/opt/ruby/bin/bundle:23:in `<main>'
	35: from /usr/local/opt/ruby/bin/bundle:23:in `load'
	34: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>'
	33: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/friendly_errors.rb:123:in `with_friendly_errors'
	32: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/gems/2.7.0/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>'
	31: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli.rb:24:in `start'
	30: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
	29: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli.rb:30:in `dispatch'
	28: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
	27: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	26: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	25: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli.rb:476:in `exec'
	24: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli/exec.rb:28:in `run'
	23: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `kernel_load'
	22: from /usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/bundler/cli/exec.rb:63:in `load'
	21: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/bin/jekyll:23:in `<top (required)>'
	20: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/bin/jekyll:23:in `load'
	19: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/exe/jekyll:15:in `<top (required)>'
	18: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
	17: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
	16: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
	15: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
	14: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
	13: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
	12: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `start'
	11: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `each'
	10: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `block in start'
	 9: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/build.rb:30:in `process'
	 8: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/commands/build.rb:30:in `new'
	 7: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/site.rb:32:in `initialize'
	 6: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/site.rb:114:in `setup'
	 5: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/plugin_manager.rb:22:in `conscientious_require'
	 4: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/plugin_manager.rb:30:in `require_gems'
	 3: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/external.rb:55:in `require_with_graceful_fail'
	 2: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/external.rb:55:in `each'
	 1: from /Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/external.rb:56:in `block in require_with_graceful_fail'
/Users/techmuse/Guide_3DS/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.0/lib/jekyll/external.rb:68:in `rescue in block in require_with_graceful_fail': jekyll-paginate (Jekyll::Errors::MissingDependencyException)```


  
I followed the instructions stated in those 2 posts but afterwards, I get this with the _config.yml file when I go to host it since It does work without it, I just need the config for the site to work properly and I still get the error after installing jekyll-paginate.

Can you share a link to your repo? We can see what you have setup and we can run it ourselves.

Can you get any other gem to work? Like if you use the jekyll new command to make a new repo and that uses minima theme and SEO plugin.

Run

bundle list

In your repo.

Then you can see what is installed and what versions.

Fixed before those posts now.