libgtk-3.so.0: cannot open shared object file: No such file or directory Couldn't load XPCOM

Error Messages

[root@test firefox]# firefox 

XPCOMGlueLoad error for file /usr/lib64/firefox/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

solution:

1, uninstall the original firefox:

yum romove firefox

2, installation gtk3

yum install gtk3

3, download the latest version installed firefox

wget https://download-ssl.firefox.com.cn/releases/firefox/60.0/zh-CN/Firefox-latest-x86_64.tar.bz2

Decompression:tar -xjvf  Firefox-latest-x86_64.tar.bz2

After the file is decompressed firefox

4, set the environment variable

Modify the configuration file

vim /etc/profile

Added to the end

PATH=$PATH:/usr/local/firefox              #/usr/local/firefox为firefox解压后的路径
export PATH

:! Wq exit the file
execution

source /etc/profile

Source: https://blog.csdn.net/chief_victo/article/details/80424987

Guess you like

Origin blog.csdn.net/xc_zhou/article/details/91483311