无法安装GTK3.4(libgtk-3.so.0)以在AWS ec2中运行firefox

Pra*_*pta 6 firefox selenium amazon-ec2 amazon-web-services gtk3

我正在尝试运行我的selenium脚本,它是在Selenium 2.53.0中使用firefox 46在无头AWS linux服务器中开发的.AWS具有GTK2.0,Firefox 46与GTK3.4及更高版本兼容.我尝试从给定的链接安装GTK 3.4并且它已安装,但我仍然收到错误

XPCOMGlueLoad error for file /usr/local/firefox/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
Run Code Online (Sandbox Code Playgroud)

我没有在我的系统中安装libgtk-3.so.0因此出错.如果somebidy可以帮助我如何升级/安装GTK 3.4以及所述库在AWS EC2服务器中运行我的Firefox,那将非常有帮助.我使用的链接:http ://ftp.gnome.org/pub/gnome/sources/gtk+/3.4/gtk+-3.4.0.tar.xz ftp://fr2.rpmfind.net/linux/fedora/linux /development/rawhide/Everything/x86_64/os/Packages/g/gtk3-3.22.15-2.fc27.x86_64.rpm 安装使用代码安装了Firefox 46 GTK3 https://gist.github.com/joekiller/ 4144838从这里开始.

谢谢.