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

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

概述我正在尝试用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我得到:Geck

我正在尝试用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 slimerJswith --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 directorySee the manual page for dbus-uuIDgen to correct this issue.  D-Bus not built with -rdynamic so unable to print a backtraceRedirecting 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 – CasperJS与Slimerjs – Xlib:扩展“RANDR”缺少显示“:99”全部内容,希望文章能够帮你解决linux – CasperJS与Slimerjs – Xlib:扩展“RANDR”缺少显示“:99”所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1048509.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存