wkhtmltopdf-libfontconfig.so.1:无法打开共享库文件 [英] wkhtmltopdf - libfontconfig.so.1: cannot open shared object file

查看:489
本文介绍了wkhtmltopdf-libfontconfig.so.1:无法打开共享库文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的debian linux服务器上安装wkhtmltopdf,这样我就可以测试它是否从URL创建pdf.

I'm trying to install wkhtmltopdf on my debian linux server so I will be able to test if it creates a pdf from a url.

我已经下载了wkhtmltopdf-0.9.9-static-i386.tar.bz2并将其内容提取到目录中.

I've downloaded wkhtmltopdf-0.9.9-static-i386.tar.bz2 and extracted it's contents to a directory.

当我尝试测试它是否正常工作时,我遇到了下一个错误:

When I try to test if it's working, I came across the next error:

/usr/local/bin#wkhtmltopdf http://google.com google.pdf wkhtmltopdf:加载共享库时出错:libfontconfig.so.1:无法打开共享库文件:没有这样的文件或目录

/usr/local/bin# wkhtmltopdf http://google.com google.pdf wkhtmltopdf: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

我正在尝试在我的symfony2上安装 https://github.com/KnpLabs/KnpSnappyBundle 而且我认为我需要先在Linux上安装wkhtmltopdf.我说的对吗?

I'm trying to install https://github.com/KnpLabs/KnpSnappyBundle on my symfony2 and I think I need to install wkhtmltopdf on my linux first. Am I right?

推荐答案

解决这个问题花了我几个小时,但您还需要安装libfontconfig1,例如:

It took me a few hours to solve this one, but you need to install libfontconfig1 also e.g.:

apt-get install libfontconfig1

这篇关于wkhtmltopdf-libfontconfig.so.1:无法打开共享库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆