Linux 中用到了 phantomjs,期间报错:
java.lang.IllegalStateException: The driver is not executable: /opt/lib/phantomjs/bin/phantomjs
原因: 驱动不是可执行的,因为当前文件不是可执行的。
在 stackoverflow 上查到了解决方法:
先 cd 切换到 phantomjs 目录,然后输入命令:
chmod 755 phantomjs
chmod 755 ... 将某一文件变成可读可写可执行。
好吧,这个问题解决了,不报这个错了。
再次运行,如果你成功了,不用往下看了。
但是我的报了另一个错:
error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
先看一下官方网站的提示:
Note: For this static build, the binary is self-contained. There is no requirement to install Qt, WebKit, or any other libraries. It howe