Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install wkhtmltopdf on Centos 6 x64
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf
// In case you got the issue
// wkhtmltopdf: error while loading shared libraries:
// libfontconfig.so.1: cannot open shared object file: No such file or directory
//
// run the command below:
$ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1
@BakerCo

This comment has been minimized.

Copy link

@BakerCo BakerCo commented Jul 30, 2015

Wish I could give this 50 million stars you sir are a life saver...

@AlphaGeek509

This comment has been minimized.

Copy link

@AlphaGeek509 AlphaGeek509 commented Aug 11, 2015

I'd like to also give my thanks for this tasty treat. You made my day after a server crash!

@javascott

This comment has been minimized.

Copy link

@javascott javascott commented Dec 23, 2015

Exactly what I needed. Thank you so much!

@smadaman

This comment has been minimized.

Copy link

@smadaman smadaman commented Jan 11, 2016

You. Are. Amazing! :-) Thanks!

@nmors

This comment has been minimized.

Copy link

@nmors nmors commented May 10, 2016

thanks.

I also needed for centos6 x64:
yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1 libXrender.so.1 libXext.so.6 libz.so.1 libstdc++.so.6

@Dipkatts

This comment has been minimized.

Copy link

@Dipkatts Dipkatts commented Mar 23, 2017

It is not working for us.

We are getting this error

--2017-03-23 10:55:46-- http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2
Resolving wkhtmltopdf.googlecode.com... 64.233.184.82, 2a00:1450:400c:c0b::52
Connecting to wkhtmltopdf.googlecode.com|64.233.184.82|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-03-23 10:55:47 ERROR 404: Not Found.

Please give us the solution so that we also can download and install it. Thanks

@juliangut

This comment has been minimized.

Copy link

@juliangut juliangut commented Jun 6, 2017

@Dipkatts google code service has been shut down thus the 404 error, change url to https://downloads.wkhtmltopdf.org/0.12/0.12.2/wkhtmltox-0.12.2.tar.bz2

@albertoarena

This comment has been minimized.

Copy link

@albertoarena albertoarena commented Jun 16, 2017

Downloads from wkhtmltopdf.org stopped working today.

https://downloads.wkhtmltopdf.org/0.12/0.12.2/wkhtmltox-0.12.2.tar.bz2

And download.gna.org was shut down few weeks ago!

@tomeightyeight

This comment has been minimized.

Copy link

@tomeightyeight tomeightyeight commented Jun 16, 2017

Literally when you want it can't get it that mirror is also dead.

Found another one but it's downloading at 2.67K/s.

Anyone else got another mirror to hand?

@jazibsheikh

This comment has been minimized.

Copy link

@jazibsheikh jazibsheikh commented Jun 16, 2017

@albertoarena yes i face the same issue wkhtmltopdf.org is quite slow it mostly timed out during download process. is there any other mirror to download this one ?

@jazibsheikh

This comment has been minimized.

Copy link

@jazibsheikh jazibsheikh commented Jun 17, 2017

Guys!! See #3518 -- releases are now hosted on Github.

@jazibsheikh

This comment has been minimized.

Copy link

@jazibsheikh jazibsheikh commented Jun 17, 2017

Link to Generic Linux version to dowload wkhtmltopdf

Another one for CentOS 6 Download

@justingreerbbi

This comment has been minimized.

Copy link

@justingreerbbi justingreerbbi commented Jun 21, 2017

Note that the RPM CentOS 6 download is not headless and will need a display to run. Simple enough but a heads up.

@swapnil-jaiswal

This comment has been minimized.

Copy link

@swapnil-jaiswal swapnil-jaiswal commented Oct 9, 2018

Thanks for the dependency list 👍
Same of hard to find.

yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1

@shakaran

This comment has been minimized.

Copy link

@shakaran shakaran commented Feb 6, 2019

I had to add xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 to dependencies

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