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

Missing libpng12 in AmazonLinux2023 #161

Open
strviola opened this issue Jun 14, 2023 · 2 comments
Open

Missing libpng12 in AmazonLinux2023 #161

strviola opened this issue Jun 14, 2023 · 2 comments

Comments

@strviola
Copy link

An error occured on AmazonLinux2023:

RuntimeError PDF could not be generated!
 Command Error: /var/www/app/shared/bundle/ruby/3.0.0/gems/wkhtmltopdf-binary-0.12.6.6/bin/wkhtmltopdf_centos_6_amd64: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
  • ruby version: 3.0.0
  • library version: wkhtmltopdf-binary-0.12.6.6

This is my cat /etc/os-release :

NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
SUPPORT_END="2028-03-01"

I think bin/wkhtmltopdf should concern os is amzn_2023 at here:

           os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
                              (os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))

           os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
                              os.start_with?('rhel_7.')
@RescuePenguin
Copy link

Can confirm this issue. I've tried hacking around it to make it use the centos 7 & 8 binaries, but the issue goes further than just the libpng version being used. Also ran into issues with libssl and libcrypto, which are both looking for versions 1.1 and the system has version 3.0.8 installed.

@wimpog
Copy link

wimpog commented Jul 1, 2024

I see this issue is marked as "completed on Apr 3". I'm still facing this issue. Any updates on it?

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

No branches or pull requests

3 participants