简体   繁体   English

ImageOptim :: BinResolver :: Error:Bin解决错误:remote:pngout worker; 使用image_optim,image_optim_rails推送到Heroku

[英]ImageOptim::BinResolver::Error: Bin resolving errors: remote: pngout worker; using image_optim, image_optim_rails pushing to Heroku

The buildpacks on my environment are as follows 我的环境中的构建包如下

=== xyz-app Buildpack URLs
1. https://github.com/jasonfb/heroku-buildpack-cedar14-imagemagick704
2. https://github.com/bobbus/image-optim-buildpack
3. heroku/ruby

I am attempting to add image_optim , image_optim_rails , and image_optim_pack to my Rails 4.1 app running on Heroku Cedar-14 我试图将image_optimimage_optim_railsimage_optim_pack添加到在Heroku Cedar-14上运行的Rails 4.1应用中

When I try to push to my environment with only image_optim, I am able to get through the build successfully. 当我尝试仅使用image_optim推送到我的环境时,我能够成功完成构建。 When add this gem 添加此宝石时

gem 'image_optim_rails' and bundle install it, then push again to Heroku, I get a crash during the build phase gem'image_optim_rails'并捆绑安装,然后再次推送到Heroku,在构建阶段我崩溃了

WARN: pngcrush 1.7.15 at /tmp/codon/vendor/bin/pngcrush (< 1.7.38) does not have blacken flag
remote:        WARN: gifsicle 1.78 at /tmp/codon/vendor/bin/gifsicle (< 1.85) does not support removing extension blocks
remote:        rake aborted!
remote:        ImageOptim::BinResolver::Error: Bin resolving errors:
remote:        pngout worker: `pngout` not found; please provide proper binary or disable this worker (--no-pngout argument or `:pngout => false` through options)
remote:        pngquant worker: `pngquant` not found; please provide proper binary or disable this worker (--no-pngquant argument or `:pngquant => false` through options)
remote:        jhead worker: `jhead` not found; please provide proper binary or disable this worker (--no-jhead argument or `:jhead => false` through options)
remote:        svgo worker: `svgo` not found; please provide proper binary or disable this worker (--no-svgo argument or `:svgo => false` through options)
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim-0.24.2/lib/image_optim/worker/class_methods.rb:73:in `create_all'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim-0.24.2/lib/image_optim/worker/class_methods.rb:44:in `create_all_by_format'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim-0.24.2/lib/image_optim.rb:86:in `initialize'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim_rails-0.2.0/lib/image_optim/railtie.rb:28:in `new'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim_rails-0.2.0/lib/image_optim/railtie.rb:28:in `block in <class:Railtie>'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/initializable.rb:30:in `instance_exec'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/initializable.rb:30:in `run'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/initializable.rb:55:in `block in run_initializers'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/initializable.rb:54:in `run_initializers'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/application.rb:300:in `initialize!'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in `public_send'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in `method_missing'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/config/environment.rb:5:in `<top (required)>'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:247:in `block in require'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:232:in `load_dependency'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:247:in `require'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/application.rb:276:in `require_environment!'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/application.rb:405:in `block in run_tasks_blocks'
remote:        /tmp/build_a3bca6e7188e4157414469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
remote:        Tasks: TOP => environment
remote:        (See full trace by running task with --trace)
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to mackweldon-europa.
remote: 
To git@heroku.com:mackweldon-europa.git
 ! [remote rejected] image-optim-branch -> master (pre-receive hook declined)

When I have both gems installed: 当我同时安装了两个宝石时:

gem 'image_optim_rails'
gem 'image_optim_pack'

(see the toy/image_optim_rails documentation) (请参阅toy / image_optim_rails文档)

It works & builds cleanly when pushed to Heroku 当推到Heroku时,它的工作原理和构建干净

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM