undefined symbol:gdk_screen_get_primary_monitor

时间:2014-07-14 04:40:13

标签: linux chromium

$ chromium-browser
/usr/bin/chromium-browser: symbol lookup error: /usr/bin/chromium-browser: undefined symbol: gdk_screen_get_primary_monitor

无法在linux上启动chrome(rhel 6.2)

$ rpm -qa | grep chromium
chromium-31.0.1650.63-2.el6.x86_64

$ rpm -qa | grep libX11
libX11-common-1.5.0-4.el6.noarch
libX11-1.5.0-4.el6.i686
libX11-1.5.0-4.el6.x86_64

$ rpm -qa | grep gtk2
pygtk2-libglade-2.16.0-3.el6.x86_64
gtk2-immodule-xim-2.18.9-12.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
gtk2-2.18.9-12.el6.x86_64

1 个答案:

答案 0 :(得分:2)

参考Gdk参考手册(https://developer.gnome.org/gdk2/2.24/GdkScreen.html#gdk-screen-get-primary-monitor),

gdk_screen_get_primary_monitor()在gtk-2.20或更高版本上可用,但看起来你的gtk2版本是2.18。

如果要使用chrome binary,则必须升级gtk或linux发行版。