sudo apt install phantomjs
phantomjs -v 报错
在/usr/bin/phantomjs文件适当位置加上下面两行代码
- export QT_QPA_PLATFORM=offscreen
- export QT_QPA_FONTDIR=/usr/share/fonts
要跟着前面的那条“export
- #!/bin/sh
- LD_LIBRARY_PATH=”/usr/lib/phantomjs:$LD_LIBRARY_PATH”
- export LD_LIBRARY_PATH
- export QT_QPA_PLATFORM=offscreen
- export QT_QPA_FONTDIR=/usr/share/fonts
- exec “/usr/lib/phantomjs/phantomjs” “$@”
composer require jaeger/querylist
composer require jaeger/querylist-phantomjs