I'm trying to get redmine set up on my ubuntu 16.04 machine, and I'm working off this tutorial. I should also say that I tried to get redmine installed some months ago, ran into some passenger/phusion problems and put it aside. So, I started googling around and came across the linked tutorial.
I got to the install Passenger and NGINX step and got the following error:
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (~> 4.2.5) was resolved to 4.2.6, which depends on
bundler (< 2.0, >= 1.3.0)
Current Bundler version:
bundler (2.0.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?
Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails
(~> 4.2.5)', in any of the sources.
I then installed ver 1.17.1 going by an answer on this q. But I still had the same problem; when checking the bundler version I got this:
$ gem list bundler
*** LOCAL GEMS ***
bundler (default: 2.1.4, 1.17.1)
bundler-unload (1.0.2)
rubygems-bundler (1.4.5)
So I wanted to delete the new version as the default, and I found this q which instructed me to look in the gems/2.7.0/specifications/default/ dir. But when I look in that dir I do not see any of the expected gemspec files, I just see this:
~/.rvm/gems/ruby-2.7.0/specifications/default$ dir -lah
total 8.0K
drwxrwxr-x 2 jason jason 4.0K Jul 25 10:30 .
drwxrwxr-x 3 jason jason 4.0K Jul 25 10:30 ..
the contents of the parent dir are:
~/.rvm/gems/ruby-2.7.0/specifications$ ls -lh
total 16K
-rw-rw-r-- 1 jason jason 2.5K Jul 25 10:26 bundler-1.17.1.gemspec
drwxrwxr-x 2 jason jason 4.0K Jul 25 10:30 default
-rw-rw-r-- 1 jason jason 4.4K Jul 25 10:28 rubygems-update- 3.1.4.gemspec
As per the comment below, I determined the location of the default spec with
$ irb
2.7.0 :001 > Gem.default_specifications_dir
=> "/usr/share/rvm/rubies/ruby- 2.7.0/lib/ruby/gems/2.7.0/specifications/default"
2.7.0 :002 >
when switching to that dir, there are lots of gemspecs. Looking for bundlers, I found:
$ ls -al | grep bundler
-rw-rw-r-- 1 jason rvm 15100 Jul 25 10:30 bundler-2.1.4.gemspec
I moved that to the parent folder, logged out and back in and still got the orig error when running
sudo apt install -y nginx-extras passenger