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

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

Error Message:

[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.

Solutions:
1. Uninstall firefox:

yum romove firefox

2. Install GTK3

yum install gtk3

3. Download the latest Firefox installation

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

Tar: tar-xjvf Firefox-latest-x86_64. Tar. Bz2
The unzipped file is Firefox
4. Set environment variables
Modify configuration file

vim /etc/profile

Add at the end

PATH=$PATH:/usr/local/firefox   #/usr/local/firefoxThe path for firefox after unzipping
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 package
rpm -qa | grep libXt Check the installed packages to see if the number is full.

Note: you cannot install with rpm-uvh libXt*. This installation mode will have packet dependency error, even if you install interdependent packages together. The reason is that RPM does not solve the problem of packet dependency
Reference: https://blog.csdn.net/chief_victo/article/details/80424987
https://blog.csdn.net/u012359618/article/details/51199170

Read More: