美文网首页我爱编程
Linux node包phantomjs运行报错: error

Linux node包phantomjs运行报错: error

作者: lihao_李浩 | 来源:发表于2018-02-28 09:36 被阅读0次

具体错误信息:phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
应该是找不到 libfontconfig 这个东西。


image.png
解决办法:

linux运行yum install fontconfig-devel命令 安装fontconfig-devel,就会自动把你所需的东西安装到服务器里面。安装过程中出现 y/n?提示 输入y回车就行了。

图示:
image.png image.png

相关文章

网友评论

    本文标题:Linux node包phantomjs运行报错: error

    本文链接:https://www.haomeiwen.com/subject/zxxbxftx.html