Skip to content

Instantly share code, notes, and snippets.

@sgonyea
Created July 18, 2011 04:45
Show Gist options
  • Save sgonyea/1088561 to your computer and use it in GitHub Desktop.
Save sgonyea/1088561 to your computer and use it in GitHub Desktop.
What the hell, rake?
Last login: Sun Jul 17 21:03:05 on ttys003
scott@mbp:~$ ds
Using /Users/scott/.rvm/gems/ruby-1.9.2-p290
scott@mbp:~/Sites/my_project$ gem uninstall rake
You have requested to uninstall the gem:
rake-0.9.1
chunky_png-1.2.0 depends on [rake (>= 0)]
factory_girl_rails-1.1.beta1 depends on [rake (>= 0)]
multi_json-1.0.3 depends on [rake (~> 0.9)]
orm_adapter-0.0.5 depends on [rake (>= 0.8.7)]
rack-1.3.0 depends on [rake (>= 0)]
railties-3.1.0.rc4 depends on [rake (>= 0.8.7)]
sprockets-2.0.0.beta.10 depends on [rake (>= 0)]
therubyracer-0.9.0 depends on [rake (~> 0.9.1)]
thor-0.14.6 depends on [rake (>= 0.8)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] n
ERROR: While executing gem ... (Gem::DependencyRemovalException)
Uninstallation aborted due to dependent gem(s)
scott@mbp:~/Sites/my_project$ rake -v
rake aborted!
You have already activated rake 0.9.2, but your Gemfile requires rake 0.9.1. Consider using bundle exec.
(See full trace by running task with --trace)
scott@mbp:~/Sites/my_project$ gem list | grep rake
rake (0.9.2, 0.9.1)
scott@mbp:~/Sites/my_project$ gem uninstall rake -v 0.9.1
You have requested to uninstall the gem:
rake-0.9.1
chunky_png-1.2.0 depends on [rake (>= 0)]
factory_girl_rails-1.1.beta1 depends on [rake (>= 0)]
multi_json-1.0.3 depends on [rake (~> 0.9)]
orm_adapter-0.0.5 depends on [rake (>= 0.8.7)]
rack-1.3.0 depends on [rake (>= 0)]
railties-3.1.0.rc4 depends on [rake (>= 0.8.7)]
sprockets-2.0.0.beta.10 depends on [rake (>= 0)]
therubyracer-0.9.0 depends on [rake (~> 0.9.1)]
thor-0.14.6 depends on [rake (>= 0.8)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] y
Remove executables:
rake
in addition to the gem? [Yn] y
Removing rake
Successfully uninstalled rake-0.9.1
scott@mbp:~/Sites/my_project$ rake
Could not find rake-0.9.1 in any of the sources
Run `bundle install` to install missing gems.
scott@mbp:~/Sites/my_project$ gem uninstall rake -v 0.9.2
ERROR: While executing gem ... (Gem::InstallError)
cannot uninstall, check `gem list -d rake`
scott@mbp:~/Sites/my_project$ gem uninstall rake
ERROR: While executing gem ... (Gem::InstallError)
cannot uninstall, check `gem list -d rake`
scott@mbp:~/Sites/my_project$ gem list rake
*** LOCAL GEMS ***
rake (0.9.2)
scott@mbp:~/Sites/my_project$ gem remove rake
ERROR: While executing gem ... (RuntimeError)
Unknown command remove
scott@mbp:~/Sites/my_project$ gem install rake
Fetching: rake-0.9.2.gem (100%)
Successfully installed rake-0.9.2
1 gem installed
scott@mbp:~/Sites/my_project$ gem uninstall rake
You have requested to uninstall the gem:
rake-0.9.2
chunky_png-1.2.0 depends on [rake (>= 0)]
factory_girl_rails-1.1.beta1 depends on [rake (>= 0)]
multi_json-1.0.3 depends on [rake (~> 0.9)]
orm_adapter-0.0.5 depends on [rake (>= 0.8.7)]
rack-1.3.0 depends on [rake (>= 0)]
railties-3.1.0.rc4 depends on [rake (>= 0.8.7)]
sprockets-2.0.0.beta.10 depends on [rake (>= 0)]
therubyracer-0.9.0 depends on [rake (~> 0.9.1)]
thor-0.14.6 depends on [rake (>= 0.8)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] y
Remove executables:
rake
in addition to the gem? [Yn] y
Removing rake
Successfully uninstalled rake-0.9.2
scott@mbp:~/Sites/my_project$ gem install rake -v 0.9.1
Fetching: rake-0.9.1.gem (100%)
Successfully installed rake-0.9.1
1 gem installed
scott@mbp:~/Sites/my_project$ rake
rake aborted!
You have already activated rake 0.9.2, but your Gemfile requires rake 0.9.1. Consider using bundle exec.
(See full trace by running task with --trace)
scott@mbp:~/Sites/my_project$ gem list | grep rake
rake (0.9.2, 0.9.1)
scott@mbp:~/Sites/my_project$ gem uninstall rake
You have requested to uninstall the gem:
rake-0.9.1
chunky_png-1.2.0 depends on [rake (>= 0)]
factory_girl_rails-1.1.beta1 depends on [rake (>= 0)]
multi_json-1.0.3 depends on [rake (~> 0.9)]
orm_adapter-0.0.5 depends on [rake (>= 0.8.7)]
rack-1.3.0 depends on [rake (>= 0)]
railties-3.1.0.rc4 depends on [rake (>= 0.8.7)]
sprockets-2.0.0.beta.10 depends on [rake (>= 0)]
therubyracer-0.9.0 depends on [rake (~> 0.9.1)]
thor-0.14.6 depends on [rake (>= 0.8)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn] y
Remove executables:
rake
in addition to the gem? [Yn] y
Removing rake
Successfully uninstalled rake-0.9.1
scott@mbp:~/Sites/my_project$ gem uninstall rake
ERROR: While executing gem ... (Gem::InstallError)
cannot uninstall, check `gem list -d rake`
scott@mbp:~/Sites/my_project$ gem list | grep rake
rake (0.9.2)
scott@mbp:~/Sites/my_project$
@sivabudh
Copy link

sivabudh commented Aug 5, 2011

Try doing a: bundle install --system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment