Roger
Roger

Reputation: 8576

wkhtmltopdf on Fedora 14

Did anybody ever installed wkhtmltopdf on Fedora 14?

On http://code.google.com/p/wkhtmltopdf/wiki/compilation there is a step by step for Debian. In the comments, there is also something similar to CentOS.

Till now I have installed:

And I have also downloaded wkhtmltopdf from git:

git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf

However, the last steps are driving me crazy. Here's where So I need some help:

Here's the wkhtmltopdf folder:

enter image description here

NEW UPDATE:

After running cd wkhtmltopdf && qmake-qt4 && make as normal user, here's what I got:

enter image description here

Then, I searched again for some qt packages I should have and ended with this group:

qt-webkit-devel.x86_64 php-qt-devel.x86_64 qt-x11.x86_64 qtnx.x86_64

Then, again, I ran qmake-qt4 && make and this time it passed with no errors.

Finally, I ran sudo make install and it also passed with no errors.

However, when I ran wkhtmltopdf -h it returns:

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

So, I decided to go all way compiling QT, following exactly the instructions. At the end, I got the same error:

$ wkhtmltopdf -h
wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory

Any help would be great.

Thanks!

Upvotes: 0

Views: 2589

Answers (4)

Nico
Nico

Reputation: 3569

The error :

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

can also be caused by the miss of Xorg, then you can install it for example on Debian :

apt-get install xorg

Upvotes: 0

onepixelcitizen
onepixelcitizen

Reputation: 1

cd /lib64
ln -s /lib/libwkhtmltox.so.0 libwkhtmltox.so.0

This also worked on CentOS release 6.2 (Final)

Upvotes: 0

Michel
Michel

Reputation: 41

wkhtmltopdf want libwkhtmltox.so.0 lib. But search it into /lib64 directory. You can :

cd /lib64
ln -s /lib/libwkhtmltox.so.0 libwkhtmltox.so.0

wkhtmltopdf -h 

is ok after that.

(sorry for my english...)

Upvotes: 4

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798686

You missed the part where you have to run qmake.

Upvotes: 1

Related Questions