Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Shared library error on heroku-18 stack #32

Open
macowie opened this issue May 31, 2018 · 5 comments
Open

Shared library error on heroku-18 stack #32

macowie opened this issue May 31, 2018 · 5 comments

Comments

@macowie
Copy link

macowie commented May 31, 2018

Just noting the buildpack doesn't work as-is on the new stack.

wkhtmltopdf: error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory

@jessamynsmith
Copy link

jessamynsmith commented Jun 4, 2018

I found that adding the following to my Aptfile got wkhtmltopdf working again.

libxrender1
libssl1.0.0

For a working example, see this app https://github.com/jessamynsmith/django-wkhtmltopdf-example

@benoitongit
Copy link

Looks like libxrender1 was added in heroku-18: https://devcenter.heroku.com/articles/stack-packages.

But now getting this error:
Command Error: /app/vendor/bundle/ruby/2.5.0/gems/wkhtmltopdf-binary-edge-0.12.5.0/libexec/wkhtmltopdf-linux-amd64: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

Would it be fantastic if the buildpack could install all missing dependencies :)

@sorentwo
Copy link
Member

Agreed, it would be great to have missing dependencies installed for the heroku-18 stack. A pull request is welcome!

@jathayde
Copy link

LibPNG seems to be in the list as well (not sure when it was added):
libpng12-0 | 1.2.50-1​ubuntu2.14.04.3

@lkrasovsky
Copy link

Looks like libxrender1 was added in heroku-18: https://devcenter.heroku.com/articles/stack-packages.

But now getting this error:
Command Error: /app/vendor/bundle/ruby/2.5.0/gems/wkhtmltopdf-binary-edge-0.12.5.0/libexec/wkhtmltopdf-linux-amd64: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

Would it be fantastic if the buildpack could install all missing dependencies :)

do you remember how did you fix it? I have the same problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants