Bundler Install Getting "I18N Requires Ruby Version >= 1.9.3"

bundler install getting i18n requires Ruby version = 1.9.3

You could try to downgrade I18n's version to 0.6.11, because that seems to be the latest version that does not require Ruby 1.9.3. To do so add this to your Gemfile

gem 'i18n', '0.6.11'

and try to run bundle install again.

Furthermore, I suggest upgrading your Ruby and Rails versions. They are both outdated. At least you could try to run Rails 3.2 with a version of Ruby that allows the new syntax. Otherwise, you will face this kind of problems with many other gems too and - more important - you will not be able to install all the security fixes there were released during the last years.

Bundle install could not find compatible versions for gem bundler

Your bundler gem is too big. You can downgrade for now by changing your gemfile to specify the lower version, and deleting the lock file again.

gem 'bundler', '1.17.1' 

Then try these commands in the terminal

gem install bundler -v 1.17.1
gem uninstall bundler -v 2.0.1
bundle update --bundler
bundle install

That last install command might be redundant. I'm on my phone so I can't test anything unfortunately.

Best of luck!

EDIT:

This is now a Heroku issue. Got it. Heroku docs regarding Bundler

Libraries
The following libraries are used by the platform for managing and running >Ruby applications and cannot be specified. For application dependency resolution and management, bundler is installed based on the contents of your Gemfile.lock. If you have a BUNDLED WITH in your Gemfile.lock then you will receive a different version of Bundler:

Applications specifying Bundler 2.x in their Gemfile.lock will receive bundler: 2.0.1
Applications specifying Bundler 1.x in their Gemfile.lock will receive bundler: 1.15.2
Applications with no BUNDLED WITH in their Gemfile.lock will default to bundler: 1.15.2
For more information on available settings see Bundler configuration. For more information on why we only support a specific set of bundler versions, please see this article about your Bundler version.

So it seems like Heroku only allows certain versions of Bundler to be compatible, relevant doc is linked. Downgrade to 1.15.2 and give it another shot.

how to get bundler to use an older bundler gem version?

You can use bundle _version_ install to install gems using a specific version.

Here's an example:

bundle _1.0.21_ install

or

bundle _1.0.21_ -v
# Bundler version 1.0.2

Reference: http://makandracards.com/makandra/9741-run-specific-version-of-bundler

ActiveRecord requires ruby version = 2.2.2

I had help with this one and resolved it. In my case i changed gemfile.lock from

    GEM
remote: http://rubygems.org/
specs:
activemodel (5.0.0.1)
activesupport (= 5.0.0.1)
activerecord (5.0.0.1)
activemodel (= 5.0.0.1)
activesupport (= 5.0.0.1)
arel (~> 7.0)
activesupport (5.0.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (7.1.4)
concurrent-ruby (1.0.2)
i18n (0.7.0)
minitest (5.9.1)
mysql2 (0.4.5)
rake (11.3.0)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
activerecord
mysql2
rake

BUNDLED WITH
1.13.6

to this one (most important is activerecord version):

GEM
remote: http://rubygems.org/
specs:
activemodel (3.1.3)
activesupport (= 3.1.3)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.3)
activemodel (= 3.1.3)
activesupport (= 3.1.3)
arel (~> 2.2.1)
tzinfo (~> 0.3.29)
activesupport (3.1.3)
multi_json (~> 1.0)
arel (2.2.1)
builder (3.0.0)
i18n (0.6.0)
multi_json (1.0.4)
mysql2 (0.3.11)
rake (0.9.2.2)
tzinfo (0.3.31)

PLATFORMS
ruby

DEPENDENCIES
activerecord
mysql2
rake

BUNDLED WITH
1.13.6

And then installed activerecord and all other that i needed

gem install activerecord -v 3.1.3
sudo apt-get install libmysqlclient-dev
sudo apt-get install ruby1.9.1-dev
gem install activerecord-mysql2-adapter
gem uninstall mysql2
gem install mysql -v 0.3.11

And the rake worked.

 rake db:migrate[]

Hope this will help someone! :)



Related Topics



Leave a reply



Submit