Linux中通过压缩包安装Firefox浏览器

您所在的位置:网站首页 解压之后怎么安装软件包 Linux中通过压缩包安装Firefox浏览器

Linux中通过压缩包安装Firefox浏览器

2024-07-09 09:41| 来源: 网络整理| 查看: 265

若原系统中已经安装firefox,需要先删掉 首先检查系统有没有安装:

rpm -qa|grep firefox

如果有安装,先删掉

rpm -e firefox版本完全名称

执行解压缩命令

tar jxvf Firefox-latest-x86_64.tar.bz2

报错信息

tar (child): lbzip2: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now

需要安装bzip2,yum安装的命令如下:

yum -y install bzip2

安装完成后再次执行解压缩命令即可 解压缩后将得到的文件夹,移到/usr/lib文件夹下

mv ./firefox /usr/lib/firefox

移动完成后,建立link文件

ln -s /usr/lib/firefox/firefox /usr/bin/firefox

在命令行输入

type firefox

结果:

firefox is /usr/bin/firefox

发现firefox执行的是 /usr/bin/firxfox

查看安装的firefox版本

firefox -version

结果:

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

需要安装相应的包

yum install libXt*

安装后再次查看安装的firefox版本

Mozilla Firefox 78.9.0esr

可正常查看版本即可



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3