BallisticPain / chef-wkhtmltopdf

Chef Cookbook for wkhtmltopdf
Other
3 stars 8 forks source link

Does not work on centos-7 #8

Open MOZGIII opened 9 years ago

MOZGIII commented 9 years ago

It fails to install the binary on centos 7.

==> default: ---- Begin output of rpm  -i /var/chef/cache/wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm ----
==> default: STDOUT: 
==> default: STDERR: error: Failed dependencies:
==> default:    fontconfig is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    libpng is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    libjpeg is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    libX11 is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    libXext is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    libXrender is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    xorg-x11-fonts-Type1 is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    xorg-x11-fonts-75dpi is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default: ---- End output of rpm  -i /var/chef/cache/wkhtmltox-0.12.2.1_linux-centos6-amd64.rpm ----
MOZGIII commented 9 years ago

With a hack to use centos 7 package from my repo:

==> default: ---- Begin output of rpm  -i /var/chef/cache/wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm ----
==> default: STDOUT: 
==> default: STDERR: error: Failed dependencies:
==> default:    libpng is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    libjpeg-turbo is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    xorg-x11-fonts-Type1 is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default:    xorg-x11-fonts-75dpi is needed by wkhtmltox-1:0.12.2.1-1.x86_64
==> default: ---- End output of rpm  -i /var/chef/cache/wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm ----

Seems like the packages are not only not static, they aren't even headless.

MOZGIII commented 8 years ago

I ended up installing it manually without this package. 24.09.2016, 01:02, "Gerald Christophe" notifications@github.com:Hi Mozgii, how did you escape from this error? I have the same kind of error.

BallisticPain commented 8 years ago

@MOZGIII

Is there something I can do to make this work better? I don't have CentOS to test with. Happy you have gotten it working. Also, I'd be happy to review a PR as well.

Thanks!

MOZGIII commented 8 years ago

We're not using wkhtmltopdf anymore, so I don't really need it now... But anyways. You could probably just test against boxes/centos-7.2, it's the one use (https://atlas.hashicorp.com/bento/boxes/centos-7.2).