Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statically link libjpeg(-turbo?) #11

Open
valpackett opened this issue May 10, 2017 · 2 comments
Open

Statically link libjpeg(-turbo?) #11

valpackett opened this issue May 10, 2017 · 2 comments

Comments

@valpackett
Copy link

Trying to run imagemin-jpegoptim on AWS Lambda:

/var/task/node_modules/jpegoptim-bin/vendor/jpegoptim: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

There is no system libjpeg… Maybe it should be linked statically?

@sindresorhus
Copy link
Contributor

Yes, ideally it should, but from experience, it's not super easy to statically link binaries on Linux. Happy to receive a good pull request though.

@Fgruntjes
Copy link

Hello,

Just wanted to let you know I had the same issue, after installing libjpeg-turbo-devel and rebuild the package fixed the issue.

My environment was CentOS btw.

Hope it helps.

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

No branches or pull requests

3 participants