centOS7上面安装wkhtmltopdf的记录

本文记录了在CentOS7系统中安装wkhtmltopdf的过程,包括安装依赖库libX11、libXrender、fontconfig、libXext等,以及解决安装过程中遇到的依赖问题。
摘要由CSDN通过智能技术生成

Using username “terry”.
Last login: Sun Feb 16 21:46:27 2020 from 192.168.31.134
[terry@MiWiFi-R4AC-srv ~]$ su
密码:
[root@local terry]#
[root@local terry]# pwd
/home/terry
[root@local terry]# cd /usr/local/src/
[root@local src]# ls
wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
[root@local src]#
[root@local src]#
[root@local src]#
[root@local src]#
[root@local src]# tar xvfJ wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
wkhtmltox/
wkhtmltox/lib/
wkhtmltox/lib/libwkhtmltox.so.0.12.4
wkhtmltox/lib/libwkhtmltox.so.0
wkhtmltox/lib/libwkhtmltox.so.0.12
wkhtmltox/lib/libwkhtmltox.so
wkhtmltox/include/
wkhtmltox/include/wkhtmltox/
wkhtmltox/include/wkhtmltox/image.h
wkhtmltox/include/wkhtmltox/dllbegin.inc
wkhtmltox/include/wkhtmltox/pdf.h
wkhtmltox/include/wkhtmltox/dllend.inc
wkhtmltox/bin/
wkhtmltox/bin/wkhtmltoimage
wkhtmltox/bin/wkhtmltopdf
wkhtmltox/share/
wkhtmltox/share/man/
wkhtmltox/share/man/man1/
wkhtmltox/share/man/man1/wkhtmltopdf.1.gz
wkhtmltox/share/man/man1/wkhtmltoimage.1.gz
[root@local src]# ls
wkhtmltox wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
[root@local src]# cd wkhtmltox/bin
[root@local bin]# ls
wkhtmltoimage wkhtmltopdf
[root@local bin]# sudo mv ./wkhtmltopdf /usr/bin/wkhtmltopdf
[root@local bin]# sudo chmod +x /usr/bin/wkhtmltopdf
[root@local bin]#
[root@local bin]#
[root@local bin]# wkhtmltpdf
bash: wkhtmltpdf: 未找到命令
[root@local bin]# cd /usr/bin/
[root@local bin]# wkhtmltopdf
wkhtmltopdf: error while loading shared libraries: libXrender.so.1: cannot open
[root@local bin]#
[root@local bin]# error while loading shared libraries: libXrender.so.
[root@local bin]#

[root@local bin]# yum repolist
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile

  • base: mirror.bit.edu.cn
  • extras: mirrors.cn99.com
  • updates: mirrors.cn99.com
    源标识
    base/7/x86_64
    extras/7/x86_64
    packages-microsoft-com-prod
    updates/7/x86_64
    repolist: 12,343
    [root@local bin]# yum repolist
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
  • base: mirror.bit.edu.cn
  • extras: mirrors.cn99.com
  • updates:
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值