linux安装firefox遇到的问题

安装的简单过程:

1、下载tar.bz2安装包,firefox-5.0.1.tar.bz2

2、以root身份运行终端输入命令:# tar -xvjf  firefox-5.0.1.tar.bz2   ;解压

3、查看旧版本firefox :# rpm -qa|grep firefox

4、移除旧的firefox:# rpm -e firefox

5、切换到解压后的firefox目录运行命令:

  # chcon -t texrel_shlib_t libxul.so

该步可能出现提示  version 'GLIBCXX_3.4.9'  not found,

linux 执行strings /usr/lib/libstdc++.so.6 | grep GLIBC
返回结果没有GLIBCXX_3.4.9

GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBC_2.0
GLIBC_2.3
GLIBC_2.4
GLIBC_2.3.4
GLIBC_2.1
GLIBC_2.1.3
GLIBC_2.2
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH

执行ls -l  /usr/lib/libstdc++.so.6
发现/usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.8,其实这里需要使用libstdc++.so.6.0.10
从网上下载这个文件,然后拔/usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.8软链接删除,重新做
ln -s /usr/lib/libstdc++.so.6.10  /usr/lib/libstdc++.so.6

6、输入命令:# ./firefox

linux中程序cannot execute binary file问题
这里写图片描述

如何查询centos查看系统内核版本,系统版本,32位还是64位?
一、查看centos内核的版本:

1)[root@localhost ~]#  cat /proc/version
Linux version 2.6.32-279.el6.i686 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Jun 22 10:59:55 UTC 2012

2) [root@localhost ~]# uname -a
Linux foros 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC 2012 i686 i686 i386 GNU/Linux

3)[root@localhost ~]# uname -r
2.6.32-279.el6.i686

二. 查看linux版本:
1) 列出所有版本信息

[root@bogon firefox]# lsb_release -a
LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.3 (Final)
Release:    6.3
Codename:   Final

注:这个命令适用于所有的linux,包括RedhatSuSEDebian等发行版。

2) 执行cat /etc/issue, 例如如下:

[root@bogon firefox]# cat /etc/issue
CentOS release 6.3 (Final)
Kernel \r on an \m

3) 执行cat /etc/redhat-release ,例如如下:

[root@bogon firefox]# cat /etc/redhat-release
CentOS release 6.3 (Final)

☆查看系统是64位还是32位:

1、getconf LONG_BIT or getconf WORD_BIT
[root@bogon firefox]# getconf LONG_BIT
32


2、file /bin/ls
[root@bogon firefox]# file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

3、lsb_release  -a
[root@bogon firefox]# lsb_release  -a
LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.3 (Final)
Release:    6.3
Codename:   Final

如何查询centos查看系统内核版本,系统版本,32位还是64位

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值