Jump to content

the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4)

mrchow19910319

I am running into this error when trying to develop a website that is built using Jekyll. 

 

zzrot@ASUS-X571GT-VX60GT:~/project_folder/buddhist_blog$ jekyll serve --livereload
Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
Configuration file: /home/zzrot/project_folder/buddhist_blog/_config.yml
            Source: /home/zzrot/project_folder/buddhist_blog
       Destination: /home/zzrot/project_folder/buddhist_blog/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 0.473 seconds.
 Auto-regeneration: enabled for '/home/zzrot/project_folder/buddhist_blog'
LiveReload address: http://127.0.0.1:35729
    Server address: http://127.0.0.1:4000//
  Server running... press ctrl-c to stop.
        LiveReload: Browser connected
^Czzrot@ASUS-X571GT-VX60GT:~/project_folder/buddhist_blog$ bundle -v
Bundler version 2.1.4
zzrot@ASUS-X571GT-VX60GT:~/project_folder/buddhist_blog$ gem list bundler

*** LOCAL GEMS ***

bundler (2.2.31, 2.2.30, 2.1.4, default: 2.1.2)
zzrot@ASUS-X571GT-VX60GT:~/project_folder/buddhist_blog$ 

How do I make the default bundler version 2.1.4 instead of 2.1.2. 

 

I have found this post on stackoverflow 

 

https://stackoverflow.com/questions/60631953/warning-the-running-version-of-bundler-is-older-than-the-version-that-created-t

 

so I tried to use `gem update --system` to solve this issue but it did not work and gave me this error message: 

 

 

zzrot@ASUS-X571GT-VX60GT:~$ gem update --system
Updating rubygems-update
Successfully installed rubygems-update-3.2.31
Parsing documentation for rubygems-update-3.2.31
Done installing documentation for rubygems-update after 0 seconds
Parsing documentation for rubygems-update-3.2.31
Done installing documentation for rubygems-update after 0 seconds
Installing RubyGems 3.2.31
Traceback (most recent call last):
	5: from setup.rb:22:in `<main>'
	4: from setup.rb:22:in `require'
	3: from /home/zzrot/gems/gems/rubygems-update-3.2.31/lib/rubygems.rb:1332:in `<top (required)>'
	2: from /home/zzrot/gems/gems/rubygems-update-3.2.31/lib/rubygems.rb:1332:in `require'
	1: from /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:49:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:50:in `<class:Specification>': undefined method `rubyforge_project=' for class `Gem::Specification' (NameError)
	3: from setup.rb:22:in `<main>'
	2: from setup.rb:22:in `require'
	1: from /home/zzrot/gems/gems/rubygems-update-3.2.31/lib/rubygems.rb:1328:in `<top (required)>'
/home/zzrot/gems/gems/rubygems-update-3.2.31/lib/rubygems.rb:1341:in `rescue in <top (required)>': undefined method `rubyforge_project=' for class `Gem::Specification' (NameError)
Loading the rubygems/defaults/operating_system.rb file caused an error. This file is owned by your OS, not by rubygems upstream. Please find out which OS package this file belongs to and follow the guidelines from your OS to report the problem and ask for help.
zzrot@ASUS-X571GT-VX60GT:~$ 

 

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

and inside my specifications folder I did not find the 2.1.2 version... also it does not contain a default folder.  LOL

 

1470955606_Screenshotfrom2021-11-1400-20-19.png.cdfb885bea9154330459be5e08610790.png

If it is not broken, let's fix till it is. 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×