推送到Heroku时出现linecache19错误

时间:2012-07-26 17:28:25

标签: ruby-on-rails heroku

我在过去曾经遇到过这样的错误,同时尝试做一个git push Heroku master,而且它一直是由于有

gem 'ruby-debug19', :require => 'ruby-debug'

在我的Gem文件中。

An error occurred while installing linecache19 (0.5.12), and Bundler cannot continue.
   Make sure that `gem install linecache19 -v '0.5.12'` succeeds before bundling.

 !     Failed to install gems via Bundler.

 !     Heroku push rejected, failed to compile Ruby/rails app

注释掉gem并运行bundle install并重新推送通常可以解决问题,但不是这次。

Linecache19似乎是ruby-debug19的依赖项,所以当我从Gem文件中删除ruby-debug19时,我不明白为什么Heroku试图安装linecache19

我的gemfile.lock文件如下:

specs:
activeadmin (0.4.3)
  bourbon (>= 1.0.0)
  devise (>= 1.1.2)
  fastercsv
  formtastic (>= 2.0.0)
  inherited_resources (> 0)
  jquery-rails (>= 1.0.0)
  kaminari (>= 0.13.0)
  meta_search (>= 0.9.2)
  rails (>= 3.0.0)
  sass (>= 3.1.0)

GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.1)
  actionpack (= 3.2.1)
  mail (~> 2.4.0)
actionpack (3.2.1)
  activemodel (= 3.2.1)
  activesupport (= 3.2.1)
  builder (~> 3.0.0)
  erubis (~> 2.7.0)
  journey (~> 1.0.1)
  rack (~> 1.4.0)
  rack-cache (~> 1.1)
  rack-test (~> 0.6.1)
  sprockets (~> 2.1.2)
activemodel (3.2.1)
  activesupport (= 3.2.1)
  builder (~> 3.0.0)
activerecord (3.2.1)
  activemodel (= 3.2.1)
  activesupport (= 3.2.1)
  arel (~> 3.0.0)
  tzinfo (~> 0.3.29)
activeresource (3.2.1)
  activemodel (= 3.2.1)
  activesupport (= 3.2.1)
activesupport (3.2.1)
  i18n (~> 0.6)
  multi_json (~> 1.0)
arel (3.0.0)
bcrypt-ruby (3.0.1)
bourbon (1.4.0)
  sass (>= 3.1)
builder (3.0.0)
coffee-rails (3.2.2)
  coffee-script (>= 2.2.0)
  railties (~> 3.2.0)
coffee-script (2.2.0)
  coffee-script-source
  execjs
coffee-script-source (1.2.0)
commonjs (0.2.6)
devise (2.0.0)
  bcrypt-ruby (~> 3.0)
  orm_adapter (~> 0.0.3)
  railties (~> 3.1)
  warden (~> 1.1)
erubis (2.7.0)
execjs (1.3.0)
  multi_json (~> 1.0)
fastercsv (1.5.4)
foreigner (1.1.2)
  activerecord (>= 3.0.0)
formtastic (2.1.1)
  actionpack (~> 3.0)
has_scope (0.5.1)
hike (1.2.1)
i18n (0.6.0)
inherited_resources (1.3.1)
  has_scope (~> 0.5.0)
  responders (~> 0.6)
journey (1.0.1)
jquery-rails (2.0.0)
  railties (>= 3.2.0.beta, < 5.0)
  thor (~> 0.14)
json (1.6.5)
kaminari (0.13.0)
  actionpack (>= 3.0.0)
  activesupport (>= 3.0.0)
  railties (>= 3.0.0)
less (2.2.1)
  commonjs (~> 0.2.6)
less-rails (2.2.3)
  actionpack (>= 3.1)
  less (~> 2.2.0)
libv8 (3.3.10.4)
macaddr (1.5.0)
  systemu (>= 2.4.0)
mail (2.4.1)
  i18n (>= 0.4.0)
  mime-types (~> 1.16)
  treetop (~> 1.4.8)
meta_search (1.1.3)
  actionpack (~> 3.1)
  activerecord (~> 3.1)
  activesupport (~> 3.1)
  polyamorous (~> 0.5.0)
mime-types (1.17.2)
multi_json (1.0.4)
orm_adapter (0.0.6)
pg (0.12.2)
polyamorous (0.5.0)
  activerecord (~> 3.0)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.1)
  rack (>= 0.4)
rack-ssl (1.3.2)
  rack
rack-test (0.6.1)
  rack (>= 1.0)
rails (3.2.1)
  actionmailer (= 3.2.1)
  actionpack (= 3.2.1)
  activerecord (= 3.2.1)
  activeresource (= 3.2.1)
  activesupport (= 3.2.1)
  bundler (~> 1.0)
  railties (= 3.2.1)
railties (3.2.1)
  actionpack (= 3.2.1)
  activesupport (= 3.2.1)
  rack-ssl (~> 1.3.2)
  rake (>= 0.8.7)
  rdoc (~> 3.4)
  thor (~> 0.14.6)
rake (0.9.2.2)
rdoc (3.12)
  json (~> 1.4)
responders (0.9.0)
  railties (~> 3.1)
sass (3.1.14)
sass-rails (3.2.4)
  railties (~> 3.2.0)
  sass (>= 3.1.10)
  tilt (~> 1.3)
sprockets (2.1.2)
  hike (~> 1.2)
  rack (~> 1.0)
  tilt (~> 1.1, != 1.3.0)
systemu (2.4.2)
therubyracer (0.10.1)
  libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
  polyglot
  polyglot (>= 0.3.1)
twitter-bootstrap-rails (2.1.1)
  actionpack (>= 3.1)
  less-rails (~> 2.2.2)
  railties (>= 3.1)
  therubyracer (= 0.10.1)
tzinfo (0.3.31)
uglifier (1.2.3)
  execjs (>= 0.3.0)
  multi_json (>= 1.0.2)
uuid (2.3.5)
  macaddr (~> 1.0)
warden (1.1.0)
  rack (>= 1.0)

PLATFORMS
ruby

DEPENDENCIES
activeadmin!
coffee-rails (~> 3.2.1)
devise (= 2.0.0)
foreigner
jquery-rails (>= 1.0.12)
pg
rails (= 3.2.1)
sass-rails (~> 3.2.3)
twitter-bootstrap-rails
uglifier (>= 1.0.3)
uuid

为什么Heroku仍在尝试安装linecache19,我怎样才能解决这个问题?

例如我可以清空我的Heroku大师并从头开始重新推动吗? (这不是生产所以我能负担得起)

1 个答案:

答案 0 :(得分:0)

将调试宝石放入Gemfile中的:development组;我不知道有任何方法来远程调试Heroku应用程序,所以没有必要在Heroku上以“生产”模式部署它们。例如:

group :development do
  gem "ruby-debug-base19x"
end