php - 在linux Redhat服务器64位上安装并执行Wkhtmltopdf(使用PHP)

标签 php linux redhat wkhtmltopdf shell-exec

我使用的是 Linux Redhat 64bit。我的服务器信息是

Linux ************* 2.6.18-238.5.1.el5xen #1 SMP 2 月 21 日星期一 06:01:41 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

为了创建 PDF,我使用 Wkhtmltopdf。

所以首先我安装了 wkhtmltopdf-0.9.9-static-amd64.tar.bz2 当我执行命令时。它显示段错误错误。

所以我重新安装了wkhtmltopdf-0.9.9-static-i386.tar.bz2,它显示wkhtmltopdf:符号查找错误:wkhtmltopdf: undefined symbol :FcFreeTypeQueryFace错误。

如何修复该错误?有解决方案吗

最佳答案

这很可能是源自 Qt 的有关 fontconfig 的错误,它(或非常类似的问题)一直是 reported in the wkhtmltopdf issues list and there is a workaround/fix there你可以尝试一下。

关于php - 在linux Redhat服务器64位上安装并执行Wkhtmltopdf(使用PHP),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12914932/

相关文章:

linux - 来自可通过另一台服务器访问的服务器的 SCP

ssl - 启用 have_ssl mariadb 时遇到问题

python-3.x - 单击将中止进一步执行,因为 Python 3 配置为使用 ASCII 作为环境编码

php - 如何删除 memcached 中具有相同前缀键的项目?

Php Mysqli 未定义函数

javascript - 鼠标悬停时更改单独 div 中的图像,动态填充图像

ldap_modify : Other (e. g.,具体实现)错误 (80)

php - 如何获取ajax值并存储在PHP变量中?

linux - 如何在 Linux 中自动设置子目录中的组

linux - nginx 服务器中未加载 magento 的设计文件