2019独角兽企业重金招聘Python工程师标准>>>
> rpm -ivh wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm
error: Failed dependencies: xorg-x11-fonts-75dpi is needed by wkhtmltox-1:0.12.2-1.x86_64 提示需要安装75dpi
> yum search 75dpi
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn:http://centos.ustc.edu.cn
* extras: centos.ustc.edu.cn:http://centos.ustc.edu.cn
* updates: centos.ustc.edu.cn:http://centos.ustc.edu.cn
============================ N/S Matched: 75dpi ====================================
xorg-x11-fonts-75dpi.noarch : A set of 75dpi resolution fonts for the X Window System.
xorg-x11-fonts-ISO8859-1-75dpi.noarch : A set of 75dpi ISO-8859-1 fonts for X.
xorg-x11-fonts-ISO8859-14-75dpi.noarch : ISO8859-14-75dpi fonts
xorg-x11-fonts-ISO8859-15-75dpi.noarch : ISO8859-15-75dpi fonts
xorg-x11-fonts-ISO8859-2-75dpi.noarch : A set of 75dpi Central European language fonts for X.
xorg-x11-fonts-ISO8859-9-75dpi.noarch : ISO8859-9-75dpi fonts
Name and summary matches only, use "search all" for everything.
> yum install xorg-x11-fonts-75dpi.noarch
安装完成后,再执行:
> rpm -ivh wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm
如果无法安装xorg-x11-fonts-75dpi.noarch
直接使用如下方法解压rpm包内已经编译好的包:
> rpm2cpio wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm | cpio -div
完成后在当前目录会生成一个 usr 的目录,里面包含 local/bin,local/include,local/share,local/lib四个文件夹
将对应文件夹的内容拷贝至/usr/local即可!
> cp -Rv ./usr/local/* /usr/local/
wkhtmltox系统环境安装完成!
ref: