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:
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- ./popins2: error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory
- [Solved] import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- [Solved] import mxnet Error: OSError: libcudart.so.8.0: cannot open shared object file: No such file or directory
- [Solved] ./my_cmake_exe: error while loading shared libraries: libswresample.so.4: cannot open shared object file: No such file or directory
- [Solved] error while loading shared libraries: libopencv_highgui.so.3.4: cannot open shared object file…
- [Samtools] Run error: error while loading shared libraries: libcrypto.so.1.0.0 or libncurses.so.5 or libtinfow.so.5
- [Solved] fatal error C1083: Could Not Open Unable to open include file:“stdint.h”: No such file or directory
- [Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘
- [Solved] open failed: ENOENT (No such file or directory)
- VSCode Unable to find custom header file directory: fatal error: no such file or directory
- [Solved] fatal error C1083: Cannot open included files: “stdafx.h”: No such file or directory
- Keil Compile Error: ..\OBJ\USART.axf: error: L6002U: Could not open file ..\obj\sys.o: No such file or directory
- crtdbg.h No such file or directory error [How to Solve]
- SLAMBook2 in ch3 code run fatal error: Eigen/Core: No such file or directory
- C++: fatal error: variant: No such file or directory
- Vue Report Error #NULL! :no such file or directory,chmod….. [email protected] **\css- Beautify.js
- [Solved] MSYS2+ fatal error: zlib.h: There is no such file or directory
- Containerd Error: btrfs/ioctl.h: No such file or directory
- [Solved] Error executing Jupyter command ‘notebook‘: [Errno 2] No such file or directory