How can I fix the error below "but activesupport 3.0.0 is required for your Gemfile"

Gem :: LoadError - you have already activated activesupport 3.0.3, but your Gemfile requires activesupport 3.0.0

/usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/runtime.rb:27:in `setup': You have already activated activesupport 3.0.3, but your Gemfile requires activesupport 3.0.0. Consider using bundle exec. (Gem::LoadError)
   from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/spec_set.rb:12:in `each'
   from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/spec_set.rb:12:in `each'
   from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler/runtime.rb:17:in `setup'
   from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.2/lib/bundler.rb:100:in `setup'
   from /home/maiordes/rails_apps/maiordesconto/config/boot.rb:8
   from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
   from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
   from /home/maiordes/rails_apps/maiordesconto/config/application.rb:1
   from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
   from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
   from /home/maiordes/rails_apps/maiordesconto/config/environment.rb:2
   from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
   from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
   from /home/maiordes/rails_apps/maiordesconto/daemons/ticket_handler.rb:6
+3
source share
2 answers

As the error says, did you consider using bundle exec? :)

Run the commands through bundle execto make sure that the available versions of Gems are exactly what the Gemfile requires.

For instance: bundle exec rails ... bundle exec rake ...

+2
source

Delete the specific gem version in the gemfile and give the gem name to one.

0
source

Source: https://habr.com/ru/post/1785652/


All Articles