Tag Archives: [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory

[Solved] libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory

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

error:

[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. To uninstall the original firebox:

yum romove firefox

2. Installing gtk3

yum install gtk3

3. Download the latest version of firebox installation

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

The extracted file is firebox

4. Setting environment variables

Modify configuration file

vim /etc/profile

Add at the end

PATH=$PATH:/usr/local/firefox   #/usr/local/firefox is firefox unzip folder
export PATH

:wq! Exit file
execution

source /etc/profile

libXt.so.6: cannot open shared object file: No such file or directory

[root@crawl-01 bin]# firefox -v
XPCOMGlueLoad error for file /usr/lib64/firefox/libxul.so:
libXt.so.6: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

Solution:

yum install libXt*  Install the appropriate packages
rpm -qa | grep libXt View the installed packages and see if the number is complete.

Note: you can’t use RPM - uvh libxt * to install. This installation method will report package dependency errors, even if you install interdependent packages together. The reason is that RPM does not solve the problem of package dependency