Ruby on rails ImageOptim::BinResolver::错误:Bin解析错误:远程:pngout worker;使用image\u optim,image\u optim\u将rails推送到Heroku
我的环境中的构建包如下Ruby on rails ImageOptim::BinResolver::错误:Bin解析错误:远程:pngout worker;使用image\u optim,image\u optim\u将rails推送到Heroku,ruby-on-rails,heroku,ruby-on-rails-4.1,image-optimization,Ruby On Rails,Heroku,Ruby On Rails 4.1,Image Optimization,我的环境中的构建包如下 === xyz-app Buildpack URLs 1. https://github.com/jasonfb/heroku-buildpack-cedar14-imagemagick704 2. https://github.com/bobbus/image-optim-buildpack 3. heroku/ruby 我正在尝试将和添加到我在Heroku Cedar-14上运行的Rails 4.1应用程序中 当我尝试只使用image_optim进入我的环境时,我能
=== xyz-app Buildpack URLs
1. https://github.com/jasonfb/heroku-buildpack-cedar14-imagemagick704
2. https://github.com/bobbus/image-optim-buildpack
3. heroku/ruby
我正在尝试将和添加到我在Heroku Cedar-14上运行的Rails 4.1应用程序中
当我尝试只使用image_optim进入我的环境时,我能够成功地完成构建。何时添加此宝石
gem“图像优化轨道”
捆绑安装,然后再推到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)
警告:pngcrush 1.7.15 at/tmp/codon/vendor/bin/pngcrush(<1.7.38)没有变黑标志
远程:警告:gifsicle 1.78 at/tmp/codon/vendor/bin/gifsicle(<1.85)不支持删除扩展块
远程:rake中止!
远程:ImageOptim::BinResolver::错误:Bin解析错误:
远程:pngout worker:`pngout`未找到;请提供正确的二进制文件或禁用此工作程序(--无pngout参数或`:pngout=>false`通过选项)
远程:pngquant worker:`pngquant`未找到;请提供正确的二进制文件或禁用此工作程序(--no pngquant参数或`:pngquant=>false`通过选项)
远程:jhead worker:`jhead`未找到;请提供正确的二进制文件或通过选项禁用此工作程序(--无jhead参数或“:jhead=>false”)
远程:svgo工作者:`svgo`未找到;请提供正确的二进制文件或禁用此工作程序(--无svgo参数或`:svgo=>false`通过选项)
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim-0.24.2/lib/image_optim/worker/class_methods.rb:73:in'create_all'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim-0.24.2/lib/image_optim/worker/class_方法。rb:44:“按_格式创建所有_”
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim-0.24.2/lib/image_optim.rb:86:“初始化”中
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim_rails-0.2.0/lib/image_optim/railtie.rb:28:in'new'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/image_optim_rails-0.2.0/lib/image_optim/railtie.rb:28:in'block-in'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/initializable.rb:30:in'instance_exec'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/initializable.rb:30:in'run'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/initializable.rb:55:in'block in run_initializers'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/initializable.rb:54:in'run_initializers'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/application.rb:300:in'initialize!'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in'public_send'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/railtie.rb:194:in'method_missing'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/config/environment.rb:5:in`'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in'require'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in'require'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_-support/dependenciences.rb:247:in'block-in-require'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:232:“加载依赖项”中
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.14.2/lib/active_support/dependencies.rb:247:in'require'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/application.rb:276:in'require_环境!'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/railties-4.1.14.2/lib/rails/application.rb:405:in'block in run_tasks_blocks'
远程:/tmp/build_a3bca6e7188e41574469f76bf31f7d/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:64:define中的“块(两级)”中
远程:任务:TOP=>环境
远程:(通过使用--trace运行任务查看完整跟踪)
遥控器:!
遥控器:!预编译资产失败。
遥控器:!
遥控器:!推送被拒绝,无法编译Ruby应用程序。
远程:
遥控器:!推送失败
远程:正在验证部署。。。
远程:
遥控器:!拒绝向欧罗巴的mackweldon推送。
远程:
到git@heroku.com:mackweldon-europa.git
! [远程拒绝]图像优化分支->主(拒绝预接收挂钩)
当我安装了两个gems时:
gem 'image_optim_rails'
gem 'image_optim_pack'
(见文件)
当推送到Heroku时,它可以干净地工作和构建只需知道
svgo
和pngout
没有与image\u optim\u pack
捆绑在一起,因此如果在任何操作中使用它们,它们也需要使用构建包安装在Heroku上。