Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 在Ubuntu x64 12.04上将wkhtmltopdf 0.11rc-1替换为0.12_Linux_Ubuntu 12.04_Wkhtmltopdf - Fatal编程技术网

Linux 在Ubuntu x64 12.04上将wkhtmltopdf 0.11rc-1替换为0.12

Linux 在Ubuntu x64 12.04上将wkhtmltopdf 0.11rc-1替换为0.12,linux,ubuntu-12.04,wkhtmltopdf,Linux,Ubuntu 12.04,Wkhtmltopdf,在Ubuntu12.04服务器上,我无法用新版本替换wkhtmltopdf 旧版本位于以下位置:/usr/local/bin/wkhtmltopdf,工作正常,但有旧的bug。我已从下载了x64 linux的新版本 . 下载并解压缩tar后,我将所有文件夹/文件复制到/usr/local/ |-- bin | |-- wkhtmltoimage | `-- wkhtmltopdf |-- include | `-- wkhtmltox | |-- dllbegin.inc

在Ubuntu12.04服务器上,我无法用新版本替换
wkhtmltopdf

旧版本位于以下位置:
/usr/local/bin/wkhtmltopdf
,工作正常,但有旧的bug。我已从下载了x64 linux的新版本 . 下载并解压缩tar后,我将所有文件夹/文件复制到
/usr/local/

|-- bin
|   |-- wkhtmltoimage
|   `-- wkhtmltopdf
|-- include
|   `-- wkhtmltox
|       |-- dllbegin.inc
|       |-- dllend.inc
|       |-- image.h
|       `-- pdf.h
`-- lib
    |-- libwkhtmltox.so.0 -> libwkhtmltox.so.0.12.1
    |-- libwkhtmltox.so.0.12 -> libwkhtmltox.so.0.12.1
    `-- libwkhtmltox.so.0.12.1
在所有这些之后,当我运行
wkhtmltopdf
时,我收到以下消息:

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

在哪里可以找到该库?

找到了解决方案,缺少此包:
libgstreamer-plugins-base0.10-0
。解决者:

sudo apt get安装libgstreamer-plugins-base0.10-0


apt get拼错了。太好了。此外,我还必须安装包
libxrender1
来修复以下错误:
wkhtmltopdf:加载共享库时出错:libXrender.so.1:无法打开共享对象文件:没有这样的文件或目录
@luissqual是的,需要libXrender。我有以前版本的。我之前在wkhtmltopdf中使用的本教程(wget…我的案例中的一部分)