AWS EC2 Linux 无头 Firefox 问题:Xvfb:未定义符号:pixman_glyph_cache_create

ozh*_*gin 5 linux firefox xvfb amazon-web-services amazon-ec2

我一直在使用 AWS EC2 Linux 执行无头 Firefox/Selenium 任务。我使用http://itsallabtamil.blogspot.com/2013/02/setting-up-chrome-firefox-ec2-selenium-java.html中的说明构建了它,后者又使用此脚本在 AWS EC2 上获取 GTK+ 和 Firefox Linux http://joekiller.com/2012/06/03/install-firefox-on-amazon-linux-x86_64-compiling-gtk/

昨天,我更新了所有软件包“sudo yum update”,但我无法再运行 Firefox!在过去的 12 个小时里,我一直在用头撞墙,但无法解决。基本上,如果我开始说 Xvfb:

Xvfb :1 -screen 0 1280x768x24
Run Code Online (Sandbox Code Playgroud)

然后尝试通过执行以下操作来启动 Firefox

firefox
export DISPLAY=:1
Run Code Online (Sandbox Code Playgroud)

在另一个终端中,我在 Xvfb 的终端中收到以下错误:

Xvfb: symbol lookup error: Xvfb: undefined symbol: pixman_glyph_cache_create
Run Code Online (Sandbox Code Playgroud)

带有 Firefox 的终端说:

Xlib:  extension "RANDR" missing on display ":1".
firefox: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
Run Code Online (Sandbox Code Playgroud)

经过几个小时的谷歌搜索,我发现第一行是一个警告,可以忽略,但我假设第二行必须连接到未定义的符号错误。我尝试从头开始重建实例(注意,需要在脚本中更新 Fox 的 URL) - 同样的错误。

任何帮助将不胜感激!

小智 10

它正在尝试加载 wring pixman。删除 /usr/local/lib/libpixman-1.so.0 并重试,它将使 Xvfb 使用具有此符号的分发 pixman 库。