【发布时间】:2015-11-16 22:03:42
【问题描述】:
有人在 Fedora 14 上安装过 wkhtmltopdf 吗?
在http://code.google.com/p/wkhtmltopdf/wiki/compilation 上,Debian 是一步一步来的。在 cmets 中,也有类似 CentOS 的东西。
到现在我已经安装好了:
开发工具
openssl-devel libXrender-devel libXext-devel libXft-devel
QT (qt.x86_64 qt-devel.x86_64 qt-webkit.x86_64)
git
而且我还从 git 下载了 wkhtmltopdf:
git clone git://github.com/antialize/wkhtmltopdf.git wkhtmltopdf
但是,最后的步骤让我发疯了。这就是我需要帮助的地方:
-
编译和安装wkhtmltopdf 现在你需要做的就是编译和安装wkhtmltopdf
制作 && 制作安装
这是 wkhtmltopdf 文件夹:
新更新:
在以普通用户身份运行cd wkhtmltopdf && qmake-qt4 && make后,我得到了:
然后,我再次搜索了一些我应该拥有的qt包并以这个组结束:
qt-webkit-devel.x86_64 php-qt-devel.x86_64 qt-x11.x86_64 qtnx.x86_64
然后,我又运行了qmake-qt4 && make,这次它顺利通过了。
最后,我跑了sudo make install,它也顺利通过了。
但是,当我运行 wkhtmltopdf -h 时,它会返回:
wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory
所以,我决定完全按照说明编译 QT。最后,我得到了同样的错误:
$ wkhtmltopdf -h
wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: No such file or directory
任何帮助都会很棒。
谢谢!
【问题讨论】:
标签: compilation fedora wkhtmltopdf