How can I correct this "i18n requires Ruby version >= 1.9.3" I get when I run "bundler install"?
Background: Need to use ruby 1.8.7 on dreamhost, so have targeted Rails v3.2 for this.
Command Line
Gregs-MacBook-Pro:weekends Greg$ ruby -v
ruby 1.8.7 (2013-12-22 patchlevel 375) [i686-darwin14.1.0]
Gregs-MacBook-Pro:weekends Greg$ bundler -v
Bundler version 1.9.2
Gregs-MacBook-Pro:weekends Greg$ bundler install
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies............
Using rake 10.4.2
Gem::InstallError: i18n requires Ruby version >= 1.9.3.
An error occurred while installing i18n (0.7.0), and Bundler cannot continue.
Make sure that `gem install i18n -v '0.7.0'` succeeds before bundling.
Gregs-MacBook-Pro:weekends Greg$
Gregs-MacBook-Pro:weekends Greg$ gem install i18n -v '0.7.0'
ERROR: Error installing i18n:
i18n requires Ruby version >= 1.9.3.
Gem File
gem 'rails', '3.2' # Dreamhost is Ruby 1.8.7. Rails 3.2 requires at least Ruby 1.8.7
gem 'sqlite3'
gem 'haml'
gem 'haml-rails'
gem 'omniauth-google-oauth2'
gem 'google-api-client', :require => 'google/api_client'
gem 'jquery-rails'
gem 'figaro'
gem 'rest-client'
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.
Related
How can I correct this "i18n requires Ruby version >= 1.9.3" I get when I run "bundler install"?
Background: Need to use ruby 1.8.7 on dreamhost, so have targeted Rails v3.2 for this.
Command Line
Gregs-MacBook-Pro:weekends Greg$ ruby -v
ruby 1.8.7 (2013-12-22 patchlevel 375) [i686-darwin14.1.0]
Gregs-MacBook-Pro:weekends Greg$ bundler -v
Bundler version 1.9.2
Gregs-MacBook-Pro:weekends Greg$ bundler install
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies............
Using rake 10.4.2
Gem::InstallError: i18n requires Ruby version >= 1.9.3.
An error occurred while installing i18n (0.7.0), and Bundler cannot continue.
Make sure that `gem install i18n -v '0.7.0'` succeeds before bundling.
Gregs-MacBook-Pro:weekends Greg$
Gregs-MacBook-Pro:weekends Greg$ gem install i18n -v '0.7.0'
ERROR: Error installing i18n:
i18n requires Ruby version >= 1.9.3.
Gem File
gem 'rails', '3.2' # Dreamhost is Ruby 1.8.7. Rails 3.2 requires at least Ruby 1.8.7
gem 'sqlite3'
gem 'haml'
gem 'haml-rails'
gem 'omniauth-google-oauth2'
gem 'google-api-client', :require => 'google/api_client'
gem 'jquery-rails'
gem 'figaro'
gem 'rest-client'
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.
Ubuntu 12.04 LTS precise32 3.2.0-23-generic-pae
ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
I've created Rails (4.0.0) project, uncommented gem 'therubyracer' in Gemfile and run 'bundle install'.
I get this error:
Could not find gem 'therubyracer (~> 0.12) ruby' in the gems available on this machine. Run `bundle install` to install missing gems.
Adding 'execjs', 'libv8' to Gemfile makes no difference as well as uninstalling and installing each of these gems again in all possible combinations.
Better you can try bundle update it will work.
I've specified therubyracer version to 0.12.0 and it worked!
I want to use Ruby 1.8.7 with Rails, but when I run bundle install I get this error:
Gem::InstallError: nokogiri requires Ruby version >= 1.9.2.
An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling.
nokogiri 1.6.0 does not support Ruby <1.9.2.
I tried installing nokogiri 1.5.9 to make things work but it did not help.
i added the line
gem 'nokogiri', '~> 1.5.10'
in my Gemfile and it install nokogiri 1.5.10 and the bundle install succeeded !
According to the changelog:
1.5.0 beta1 / 2010/05/22
Ruby 1.8.6 is deprecated. Nokogiri will install, but official support is ended.
So, you'll probably need to use nokogirl version 1.4.7.
i am using ruby 1.8.7 and rails 3.0.12 for my project.
when i run "bundle install", i get the following error.
Gem::InstallError: linecache19 requires Ruby version >= 1.9.2.
An error occurred while installing linecache19 (0.5.12), and Bundler cannot continue.
i don't want to change my ruby version.
You can try using the debugger gem instead of ruby-debug. Check out your gemfile and replace gem "ruby-debug" with gem "debugger". From memory that's how I did it.
Replacing gem 'ruby-debug19' with gem 'ruby-debug' worked for me.
I am getting this error on bundle install
Gem::InstallError: devise_invitable requires RubyGems version ~> 1.3.6. Try 'gem update --system' to update RubyGems itself.
An error occured while installing devise_invitable (0.4.rc), and Bundler cannot continue.
Make sure that `gem install devise_invitable -v '0.4.rc'` succeeds before bundling.
but when i see the version of rubygems i have
gem -v
1.8.10
any ideas on how to fix this....here is the top of my gemfile
gem 'rails', '3.0.3'
gem 'devise', "1.2.rc"
gem 'devise_invitable', '0.4.rc'
In the gemspec for devise_invitable, they explicitly require rubygems, ruby and bundler with specific version constraints. While they look like they should be ok since they are using >=, the fact that it comes out in your console as ~> is telling.
The requirement of ~> 1.3.6 means you need to have a version of rubygems installed that is 1.3.6 <= x < 1.4.0.
You could try running bundle install to get compatible gem versions
But if that doesn't work, try installing the version explicitly gem install rubygems -v 1.3.6