エラーメッセージ
[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.
ソリューション:
1、元のFirefoxをアンインストールします。
yum romove firefox
2、インストールgtk3
yum install gtk3
3、Firefoxのインストールされた最新バージョンをダウンロードしてください
wget https://download-ssl.firefox.com.cn/releases/firefox/60.0/zh-CN/Firefox-latest-x86_64.tar.bz2
解凍:tar -xjvf Firefox-latest-x86_64.tar.bz2
ファイルはFirefoxの圧縮解除された後、
4、環境変数を設定
設定ファイルを変更します。
vim /etc/profile
最後に追加
PATH=$PATH:/usr/local/firefox #/usr/local/firefox为firefox解压后的路径
export PATH
:!Wqと出口ファイル
の実行
source /etc/profile
出典:https://blog.csdn.net/chief_victo/article/details/80424987