2011-09-24 53 views
2

Bundler每次都会安装sqlite3,但我并没有在我的项目中使用它。我选择了Postgres,但无法将其部署到Heroku。 Bundler就是这个原因。为什么是这样?我该怎么办?Bundler每次都会安装sqlite3,但是在Gemfile中没有sqlite

我正试图为此制作单独的gemset。我清理并重新安装了所有的宝石。但每次sqlite的来到了我的 “包安装” 日志:

....... 
Using sqlite3 (1.3.4) 
Using sqlite3-ruby (1.3.3) 
Using taps (0.3.23) 
Using thin (1.2.11) 
Using turn (0.8.2) 
Using uglifier (1.0.3) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. 

我的Gemfile:

source 'http://rubygems.org' 

gem 'rails', '3.1.0' 

gem "jquery-rails" 
gem 'sorcery' 
gem 'simple_form' 
gem 'cocoon' 

gem 'thin' 
gem 'heroku' 
gem 'taps' 
gem 'pg' 

# Gems used only for assets and not required 
# in production environments by default. 
group :assets do 
    gem 'sass-rails', " ~> 3.1.0" 
    gem 'coffee-rails', "~> 3.1.0" 
    gem 'uglifier' 
end 

group :development do 
    gem "cucumber-rails" 
    gem "capybara" 
    gem "rspec-rails", ">= 2.0.1" 
end 

group :test do 
    gem 'turn', :require => false 
    gem "cucumber-rails" 
    gem "capybara" 
    gem "rspec-rails", ">= 2.0.1" 
    gem "database_cleaner" 
    gem "factory_girl_rails" 
end 

帮助请,有什么不对?


UPDATE: 新增Gemfile.lock的:

GEM 
    remote: http://rubygems.org/ 
    specs: 
    actionmailer (3.1.0) 
     actionpack (= 3.1.0) 
     mail (~> 2.3.0) 
    actionpack (3.1.0) 
     activemodel (= 3.1.0) 
     activesupport (= 3.1.0) 
     builder (~> 3.0.0) 
     erubis (~> 2.7.0) 
     i18n (~> 0.6) 
     rack (~> 1.3.2) 
     rack-cache (~> 1.0.3) 
     rack-mount (~> 0.8.2) 
     rack-test (~> 0.6.1) 
     sprockets (~> 2.0.0) 
    activemodel (3.1.0) 
     activesupport (= 3.1.0) 
     bcrypt-ruby (~> 3.0.0) 
     builder (~> 3.0.0) 
     i18n (~> 0.6) 
    activerecord (3.1.0) 
     activemodel (= 3.1.0) 
     activesupport (= 3.1.0) 
     arel (~> 2.2.1) 
     tzinfo (~> 0.3.29) 
    activeresource (3.1.0) 
     activemodel (= 3.1.0) 
     activesupport (= 3.1.0) 
    activesupport (3.1.0) 
     multi_json (~> 1.0) 
    addressable (2.2.6) 
    ansi (1.3.0) 
    arel (2.2.1) 
    bcrypt-ruby (3.0.1) 
    builder (3.0.0) 
    capybara (1.1.1) 
     mime-types (>= 1.16) 
     nokogiri (>= 1.3.3) 
     rack (>= 1.0.0) 
     rack-test (>= 0.5.4) 
     selenium-webdriver (~> 2.0) 
     xpath (~> 0.1.4) 
    childprocess (0.2.2) 
     ffi (~> 1.0.6) 
    cocoon (1.0.12) 
    coffee-rails (3.1.1) 
     coffee-script (>= 2.2.0) 
     railties (~> 3.1.0) 
    coffee-script (2.2.0) 
     coffee-script-source 
     execjs 
    coffee-script-source (1.1.2) 
    cucumber (1.0.6) 
     builder (>= 2.1.2) 
     diff-lcs (>= 1.1.2) 
     gherkin (~> 2.4.18) 
     json (>= 1.4.6) 
     term-ansicolor (>= 1.0.6) 
    cucumber-rails (1.0.5) 
     capybara (>= 1.1.1) 
     cucumber (~> 1.0.6) 
     nokogiri (>= 1.5.0) 
    daemons (1.1.4) 
    database_cleaner (0.6.7) 
    diff-lcs (1.1.3) 
    erubis (2.7.0) 
    eventmachine (0.12.10) 
    execjs (1.2.8) 
     multi_json (~> 1.0) 
    factory_girl (2.1.2) 
     activesupport 
    factory_girl_rails (1.2.0) 
     factory_girl (~> 2.1.0) 
     railties (>= 3.0.0) 
    faraday (0.6.1) 
     addressable (~> 2.2.4) 
     multipart-post (~> 1.1.0) 
     rack (< 2, >= 1.1.0) 
    ffi (1.0.9) 
    gherkin (2.4.21) 
     json (>= 1.4.6) 
    heroku (2.8.4) 
     launchy (>= 0.3.2) 
     rest-client (~> 1.6.1) 
     rubyzip 
     term-ansicolor (~> 1.0.5) 
    hike (1.2.1) 
    i18n (0.6.0) 
    jquery-rails (1.0.14) 
     railties (~> 3.0) 
     thor (~> 0.14) 
    json (1.6.1) 
    json_pure (1.6.1) 
    launchy (2.0.5) 
     addressable (~> 2.2.6) 
    mail (2.3.0) 
     i18n (>= 0.4.0) 
     mime-types (~> 1.16) 
     treetop (~> 1.4.8) 
    mime-types (1.16) 
    multi_json (1.0.3) 
    multipart-post (1.1.3) 
    nokogiri (1.5.0) 
    oauth (0.4.5) 
    oauth2 (0.4.1) 
     faraday (~> 0.6.1) 
     multi_json (>= 0.0.5) 
    pg (0.11.0) 
    polyglot (0.3.2) 
    rack (1.3.3) 
    rack-cache (1.0.3) 
     rack (>= 0.4) 
    rack-mount (0.8.3) 
     rack (>= 1.0.0) 
    rack-ssl (1.3.2) 
     rack 
    rack-test (0.6.1) 
     rack (>= 1.0) 
    rails (3.1.0) 
     actionmailer (= 3.1.0) 
     actionpack (= 3.1.0) 
     activerecord (= 3.1.0) 
     activeresource (= 3.1.0) 
     activesupport (= 3.1.0) 
     bundler (~> 1.0) 
     railties (= 3.1.0) 
    railties (3.1.0) 
     actionpack (= 3.1.0) 
     activesupport (= 3.1.0) 
     rack-ssl (~> 1.3.2) 
     rake (>= 0.8.7) 
     rdoc (~> 3.4) 
     thor (~> 0.14.6) 
    rake (0.9.2) 
    rdoc (3.9.4) 
    rest-client (1.6.7) 
     mime-types (>= 1.16) 
    rspec (2.6.0) 
     rspec-core (~> 2.6.0) 
     rspec-expectations (~> 2.6.0) 
     rspec-mocks (~> 2.6.0) 
    rspec-core (2.6.4) 
    rspec-expectations (2.6.0) 
     diff-lcs (~> 1.1.2) 
    rspec-mocks (2.6.0) 
    rspec-rails (2.6.1) 
     actionpack (~> 3.0) 
     activesupport (~> 3.0) 
     railties (~> 3.0) 
     rspec (~> 2.6.0) 
    rubyzip (0.9.4) 
    sass (3.1.7) 
    sass-rails (3.1.2) 
     actionpack (~> 3.1.0) 
     railties (~> 3.1.0) 
     sass (>= 3.1.4) 
     sprockets (~> 2.0.0) 
     tilt (~> 1.3.2) 
    selenium-webdriver (2.7.0) 
     childprocess (>= 0.2.1) 
     ffi (>= 1.0.7) 
     json_pure 
     rubyzip 
    sequel (3.20.0) 
    simple_form (1.5.2) 
     actionpack (~> 3.0) 
     activemodel (~> 3.0) 
    sinatra (1.0) 
     rack (>= 1.0) 
    sorcery (0.6.1) 
     bcrypt-ruby (~> 3.0.0) 
     oauth (~> 0.4.4) 
     oauth (~> 0.4.4) 
     oauth2 (~> 0.4.1) 
     oauth2 (~> 0.4.1) 
    sprockets (2.0.0) 
     hike (~> 1.2) 
     rack (~> 1.0) 
     tilt (!= 1.3.0, ~> 1.1) 
    sqlite3 (1.3.4) 
    sqlite3-ruby (1.3.3) 
     sqlite3 (>= 1.3.3) 
    taps (0.3.23) 
     rack (>= 1.0.1) 
     rest-client (< 1.7.0, >= 1.4.0) 
     sequel (~> 3.20.0) 
     sinatra (~> 1.0.0) 
     sqlite3-ruby (~> 1.2) 
    term-ansicolor (1.0.6) 
    thin (1.2.11) 
     daemons (>= 1.0.9) 
     eventmachine (>= 0.12.6) 
     rack (>= 1.0.0) 
    thor (0.14.6) 
    tilt (1.3.3) 
    treetop (1.4.10) 
     polyglot 
     polyglot (>= 0.3.1) 
    turn (0.8.2) 
     ansi (>= 1.2.2) 
    tzinfo (0.3.29) 
    uglifier (1.0.3) 
     execjs (>= 0.3.0) 
     multi_json (>= 1.0.2) 
    xpath (0.1.4) 
     nokogiri (~> 1.3) 

PLATFORMS 
    ruby 

DEPENDENCIES 
    capybara 
    cocoon 
    coffee-rails (~> 3.1.0) 
    cucumber-rails 
    database_cleaner 
    factory_girl_rails 
    heroku 
    jquery-rails 
    pg 
    rails (= 3.1.0) 
    rspec-rails (>= 2.0.1) 
    sass-rails (~> 3.1.0) 
    simple_form 
    sorcery 
    taps 
    thin 
    turn 
    uglifier 
+2

你可以在你的'Gemfile.lock'中看到依赖关系,这可能是一个依赖于(正确或错误地)在sqlite上的gem。 –

+1

也许它在'Gemfile.lock'中? **编辑:**嗯,忍者。 – Felix

+0

我在更新部分添加了Gemfile.lock。应该杀死哪个依赖项? :) – BazZy

回答

3

(即使你已经想通了,我会把它放在这里柜面由于某种原因,人们不读评论)

您在Gemfile中需要的'水龙头'gem(http://rubygems.org/gems/taps)对'sqlite3-ruby'gem具有runtine依赖性。

您可以后容易找出奇怪的依赖查看你的Gemfile.lock文件,你可以在这里看到来自...

taps (0.3.23) 
    rack (>= 1.0.1) 
    rest-client (< 1.7.0, >= 1.4.0) 
    sequel (~> 3.20.0) 
    sinatra (~> 1.0.0) 
    sqlite3-ruby (~> 1.2) 

每个创业板将其运行时依赖与版本一起列出它需要。

+0

你对水龙头做了什么?你最终删除它?如果是这样,你找到了替代方案吗? – thewillcole

+1

快速浏览之后,在github项目上似乎存在一个悬而未决的问题 - https://github.com/ricardochimal/taps/issues/84 – lloydpick

相关问题