"You have already activated" message even when using bundle exec
- by juanpastas
I am installing gems in my Gemfile in shared path as Capistrano does by default, and when I run:
bundle exec rake assets:precompile RAILS_ENV=production
I get:
You have already activated rake 0.9.2.2, but your Gemfile requires rake 10.0.4. Using bundle exec may solve this.
See that:
cat Gemfile.lock | grep rake
returns:
rake (>= 0.8.7)
rake (10.0.4)
This is my gem environment output:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/bitnami/my_app/shared/bundle/ruby/1.9.1/
- RUBY EXECUTABLE: /opt/bitnami/ruby/bin/ruby
- EXECUTABLE DIRECTORY: /home/bitnami/my_app/shared/bundle/ruby/1.9.1/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/bitnami/my_app/shared/bundle/ruby/1.9.1/
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "gemhome" => "/home/bitnami/my_app/shared/bundle/ruby/1.9.1/"
- "gempath" => ["/home/bitnami/my_app/shared/bundle/ruby/1.9.1/"]
- REMOTE SOURCES:
- http://rubygems.org/
Update
which -a rake
/opt/bitnami/rvm/bin/rake
/opt/bitnami/ruby/bin/rake
Update 2
I tried giving full path to rake, but same problem