如何停用特定版本的gem?

时间:2010-12-26 21:45:13

标签: ruby-on-rails

目前我的计算机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)

如何停用机架1.0.1并激活1.2.1? (我无法卸载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

这是我的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'

1 个答案:

答案 0 :(得分:0)

你可能正在使用Aspen堆栈,需要切换到Bamboo来完成你想要做的事情。

http://docs.heroku.com/stack