2024年3月20日发(作者:)
很多时候我们需要用linux运行或测试程序,然而我们发现64位linux系统在检测
32位程序的动态链接库文件时(也就是ldd一个so文件)会报错:
不是动态可执行文件【或英文提示:not a dynamic executable file】
这是因为系统没有安装32位兼容库的缘故,我们分两大方法解决这个问题→有网络/
无网络
一、当前使用linux系统已连接网络情况下,可进行在线安装
yum在线安装:sudo yum install xulrunner.i686
或:sudo yum install ia32-libs.i686
Ubuntu系统:sudo apt-get install ia32-libs
但是在这里要附带说明一下,RedHat系统默认是需要注册才能使用yum的在线安
装功能的,如果没有注册系统会提示:
This system is not registered to Red Hat Subscription Management. You can
use subscription-manager to register.
如果您不想花钱注册,请参考B计划:【使用CentOS的网络资源配置yum源】
备份原repo文件:mv /etc/.d/
/etc/.d/
编辑repo文件: vi /etc/.d/
内容为:
[base]
name=CentOS-$releasever - Base
baseurl=/centos/6.0/os/$basearch/
gpgcheck=1
gpgkey=/centos/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=/centos/6.0/updates/$basearch/
gpgcheck=1
gpgkey=/centos/RPM-GPG-KEY-CentOS-6


发布评论