Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Bundler说我已经激活了gem,但我的gemfile需要不同的版本?_Ruby On Rails_Gem_Bundler - Fatal编程技术网

Ruby on rails Bundler说我已经激活了gem,但我的gemfile需要不同的版本?

Ruby on rails Bundler说我已经激活了gem,但我的gemfile需要不同的版本?,ruby-on-rails,gem,bundler,Ruby On Rails,Gem,Bundler,我运行了“bundle exec install”,但仍然出现以下错误: Gem::LoadError: You have already activated metaclass 0.0.2, but your Gemfile requires metaclass 0.0.1. Using bundle exec may solve this. 为什么会这样?它不应该在当前应用程序的上下文中执行吗?我认为您只想使用: bundle install 从应用程序目录中运行bundle updat

我运行了“bundle exec install”,但仍然出现以下错误:

Gem::LoadError: You have already activated metaclass 0.0.2, but your Gemfile requires metaclass 0.0.1. Using bundle exec may solve this.

为什么会这样?它不应该在当前应用程序的上下文中执行吗?

我认为您只想使用:

bundle install

从应用程序目录中运行
bundle update元类
,以便应用
Gemfile
中指定的版本