0

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:

  • Development Tools

  • openssl-devel libXrender-devel libXext-devel libXft-devel

  • QT (qt.x86_64 qt-devel.x86_64 qt-webkit.x86_64)

  • git

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:

  • Compiling and installing wkhtmltopdf Now all you need to do is compile and install wkhtmltopdf

    make && make install

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!

4

4 回答 4

4

wkhtmltopdf想要libwkhtmltox.so.0 lib。但是在/lib64目录中搜索它。你可以 :

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

wkhtmltopdf -h 

之后就可以了。

(对不起我的英语不好...)

于 2012-03-13T16:42:49.847 回答
1

您错过了必须运行的部分qmake

于 2011-07-03T02:04:16.557 回答
0
cd /lib64
ln -s /lib/libwkhtmltox.so.0 libwkhtmltox.so.0

这也适用于 CentOS 6.2 版(最终版)

于 2013-03-28T16:24:23.270 回答
0

错误 :

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

也可能是由于 Xorg 的缺失引起的,那么您可以在 Debian 上安装它:

apt-get install xorg
于 2015-11-16T14:03:42.860 回答