我正在使用 ruby 1.9.3p194 和 bundler 1.1.4
在我的 Gemfile 我有这个:
group :production do
gem 'thin', '1.4.1'
end
当我运行 $ rails 时,bundler 不断抱怨:
Could not find gem 'thin (>= 1.4.1) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
我在开发环境下运行,所以它不应该不在乎它是否安装吗?在运行 $ rails s 时,剂量捆绑器会强制您安装所有 gem?
我也尝试了 group:test,同样的事情发生了。这对我来说真的没有意义,有人可以帮忙吗?
我的宝石文件:
source 'https://rubygems.org'
gem 'rails', '3.2.6'
gem 'mysql2'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
group :production do
gem 'thin', '1.4.1'
end
gem 'devise', '2.1.2'
gem 'cancan', '1.6.8'
gem 'will_paginate', '3.0.3'