linux – CasperJS与Slimerjs – Xlib:扩展“RANDR”缺少显示“:99”

我正在尝试用Slimerjs运行Casperjs

>我安装了SlimerJS 0.10.2
>我已经安装了Mozilla Firefox 45.5.1(也尝试过50)
>我已经安装了CasperJS 1.1.3
>我已经安装了xvfb 1.17.4

在Centos 6.8上运行

当试图从php运行casperjs slimerjs我得到:

Gecko error: it seems /usr/bin/firefox is not compatible with SlimerJS.
See Gecko version compatibility. If version is correct,launch slimerjs
with --debug=true to see Firefox error message

当我尝试使用debug = true从控制台运行脚本时:
/usr/local / bin / casperjs / tmp / casperjs-5cn484 –debug = true –engine = slimerjs
(我也试过xvfb-run)

我收到此错误:

Xlib:  extension "RANDR" missing on display ":99".
process 5588: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
  D-Bus not built with -rdynamic so unable to print a backtrace
Redirecting call to abort() to mozalloc_abort

/usr/lib/node_modules/slimerjs/src/slimerjs: line 167:  5588 Segmentation fault      "$SLIMERJSLAUNCHER" -app "$SLIMERDIR/application.ini" $PROFILE -no-remote "$@"

如果我运行slimerjs –debug = true,我得到:

错误:无法打开显示:: 1.1
Gecko错误:似乎/usr/bin/firefox与SlimerJS不兼容.
请参阅Gecko版本兼容性.如果版本正确,请启动slimerjs
使用–debug = true可以看到Firefox错误消息

我已经尝试了很多解决方案,例如:

>尝试过:Xvfb:1-screen 0 1024x768x24扩展RANDR&并导出DISPLAY =:1(同样:99)
>尝试导出LD_LIBRARY_PATH = /usr/lib / x86_64-linux-gnu /
>升级降级firefox版本
>检查是否有字体,有一个,所以没问题

我不知道我在尝试什么,一些建议?

相关文章

linux常用进程通信方式包括管道(pipe)、有名管道(FIFO)、...
Linux性能观测工具按类别可分为系统级别和进程级别,系统级别...
本文详细介绍了curl命令基础和高级用法,包括跳过https的证书...
本文包含作者工作中常用到的一些命令,用于诊断网络、磁盘占满...
linux的平均负载表示运行态和就绪态及不可中断状态(正在io)的...
CPU上下文频繁切换会导致系统性能下降,切换分为进程切换、线...