ruby on rails - Rake aborted on multiple machines. CompilationError? -
i've had problem rails application long time now. have time mess don't understand problem is. within phusion passenger error, on ubuntu server error, , @ heroku still see error.
i've logged in heroku in terminal heroku login
, run rake command: heroku run rake db:version --app tara-crammer-designs
.
this see error:
running `rake db:version` attached terminal... up, run.4434 /app/.ruby_inline/ruby-2.2.0/inline_fastimage_bbac2b6030874ea47494fd3952895412.c:2:16: fatal error: gd.h: no such file or directory #include "gd.h" ^ compilation terminated. rake aborted! compilationerror: error executing "gcc -shared -fpic -o3 -fno-fast-math -g -wall -wextra -wno-unused-parameter -wno-parentheses -wno-long-long -wno-missing-field-initializers -wunused-variable -wpointer-arith -wwrite-strings -wdeclaration-after-statement -wimplicit-function-declaration -wdeprecated-declarations -wno-packed-bitfield-compat -l. -fstack-protector -rdynamic -wl,-export-dynamic -i /app/vendor/ruby-2.2.2/include/ruby-2.2.0 -i /app/vendor/ruby-2.2.2/include/ruby-2.2.0/x86_64-linux -i /app/vendor/ruby-2.2.2/include -l/app/vendor/ruby-2.2.2/lib -o \"/app/.ruby_inline/ruby-2.2.0/inline_fastimage_bbac2b6030874ea47494fd3952895412.so\" \"/app/.ruby_inline/ruby-2.2.0/inline_fastimage_bbac2b6030874ea47494fd3952895412.c\" -lgd ": pid 6 exit 1 renamed /app/.ruby_inline/ruby-2.2.0/inline_fastimage_bbac2b6030874ea47494fd3952895412.c /app/.ruby_inline/ruby-2.2.0/inline_fastimage_bbac2b6030874ea47494fd3952895412.c.bad /app/vendor/bundle/ruby/2.2.0/gems/rubyinline-3.12.4/lib/inline.rb:618:in `build' /app/vendor/bundle/ruby/2.2.0/gems/rubyinline-3.12.4/lib/inline.rb:856:in `inline' /app/vendor/bundle/ruby/2.2.0/gems/fastimage_resize-2.0.3/lib/fastimage_resize.rb:116:in `<class:fastimage>' /app/vendor/bundle/ruby/2.2.0/gems/fastimage_resize-2.0.3/lib/fastimage_resize.rb:34:in `<top (required)>' /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `require' /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:76:in `block (2 levels) in require' /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `each' /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:72:in `block in require' /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `each' /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:61:in `require' /app/vendor/bundle/ruby/2.2.0/gems/bundler-1.9.7/lib/bundler.rb:134:in `require' /app/config/application.rb:7:in `<top (required)>' /app/rakefile:4:in `require' /app/rakefile:4:in `<top (required)>' (see full trace running task --trace)
what mean? how fix , run migrations?
looks 1 of gems (fastimage_inline
) requires native library libgd
, heroku not provide it. first link google 'libgd heroku' might helpful: http://www.developwith.com/how-do-i/ruby/add-image-processing-heroku-buildpack.html
Comments
Post a Comment