"You have already activated" message even when using bundle exec
Posted
by
juanpastas
on Stack Overflow
See other posts from Stack Overflow
or by juanpastas
Published on 2013-07-03T04:39:40Z
Indexed on
2013/07/03
5:05 UTC
Read the original article
Hit count: 285
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
© Stack Overflow or respective owner