我的linux版本信息

[root@localhost fangrn]# uname -a
Linux localhost.localdomain 2.6.18-8.el5xen #1 SMP Fri Jan 26 14:42:21 EST 2007 i686 i686 i386 GNU/Linux
 

我们在给linux安装完软件后常会遇到需要安装驱动之类的情况,而安装驱动的时候又常会遇到缺少库等情况

[root@localhost fangrn]# rpm -Uvh fglrx_4_3_0-8.35.5-1.i386.rpm 
error: Failed dependencies:
	libexpat.so.1 is needed by fglrx_4_3_0-8.35.5-1.i386
	libstdc++.so.5 is needed by fglrx_4_3_0-8.35.5-1.i386
	libstdc++.so.5(GLIBCPP_3.2) is needed by fglrx_4_3_0-8.35.5-1.i386

 根据一库的名称查找软件包

http://rpmfind.net/linux/rpm2html/search.php?query=libexpat1&submit=Search+...&system=&arch=

 我先下载了一个libexpat1-2.0.1-91.11.i586.rpm

安装结果

[root@localhost fangrn]# rpm -Uvh libexpat1-2.0.1-91.11.i586.rpm 
warning: libexpat1-2.0.1-91.11.i586.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 3dbdc284
error: Failed dependencies:
	rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by libexpat1-2.0.1-91.11.i586

 查了半天google,有人提醒,换个版本看看libexpat1-2.0.1-24.i586.rpm

安装结果

[root@localhost fangrn]# rpm -Uvh libexpat1-2.0.1-24.i586.rpm 
Preparing...                ########################################### [100%]
   1:libexpat1              ########################################### [100%]
 

 

 

 

Logo

更多推荐