I have installed wicked_pdf locally to my Rails app and it is generating pdfs.
When I push it to Heroku and try to generate a pdf, I get:
Command Error: /app/bin/wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: no such file or directory
I am running Arch. wkhtmltopdf was installed using pacman and generated entries in the /usr/bin/wkhtmltopdf and /usr/lib64/libwkhtmltox.so.0
wkhtmltopdf is copied to my_rails_app/bin/wkhtmltopdf and Heroku appears to find it ok.
libwkhtmltox.so.0 has been copied to three locations and Heroku still cannot find it.
Where does Heroku want this file?
-- EDIT --
The test "wkhtmltopdf http://www.google.com google.pdf" performs as expected on my local machine (it generates a pdf file).
Using "heroku run bash" brings up a command line connected to my heroku server;
% which wkhtmltopdf
=> /app/bin/wkhtmltopdf
% which libwkhtmltox.so.0
=> /app/bin/libwkhtmltox.so.0
% wkhtmltopdf http://www.google.com google.pdf
=> wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory