[英]How do I deactivate a specific version of gem?
Currently I have two versions of rack installed on my computer 1.0.1 and 1.2.1 However, when I tried to push my git to Heroku, it complains 目前我的计算机1.0.1和1.2.1上安装了两个版本的机架但是,当我试图将我的git推送到Heroku时,它会抱怨
You have already activated rack 1.0.1, but your Gemfile requires rack 1.2.1. Consider using bundle exec. (Gem::LoadError)
How can I deactivate rack 1.0.1 and activate 1.2.1 instead? 如何停用机架1.0.1并激活1.2.1? (I can't uninstall 1.0.1 since it's under system folder and I don't have the root password)
(我无法卸载1.0.1,因为它在系统文件夹下,我没有root密码)
gem list -d rack
*** LOCAL GEMS ***
rack (1.2.1, 1.0.1)
Author: Christian Neukirchen
Rubyforge: http://rubyforge.org/projects/rack
Homepage: http://rack.rubyforge.org
Installed at (1.2.1): /Library/Ruby/Gems/1.8
(1.0.1): /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
a modular Ruby webserver interface
And this is my Gemfile 这是我的Gemfile
source 'http://rubygems.org'
gem 'rails', '3.0.1'
gem 'sqlite3-ruby', '1.2.5'
gem 'hpricot'
gem 'gravatar_image_tag', '0.1.0'
gem 'devise', '1.1.3'
gem 'omniauth'
gem 'fb_graph'
gem 'rack', '1.2.1'
gem 'annotate-models'
gem 'webrat'
gem 'faker', '0.3.1'
gem 'will_paginate', '3.0.pre2'
You are probably using the Aspen stack, and will need to switch to Bamboo to accomplish what you're trying to do. 你可能正在使用Aspen堆栈,需要切换到Bamboo来完成你想要做的事情。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.