安装ASMLib/oracleasm RPM包时报“error:Failed dependencies:”错。
适用于:
Linux Kernel - Version: 2.0
IBM zSeries Based Linux
Linux Itanium
Linux x86-64
IBM Power Based Linux
Linux x86
症状:
通过几个Linux RPM软件包文件的ASMLib的内核驱动程序执行oracleasm安装:
oracleasm
oracleasmlib
oracleasm-support
下载的RPM文件后,在安装时,您可能会遇到依赖错误,如下面:
# rpm -ivh oracleasm-2.6.9-34.EL-2.0.3-1.i686.rpm
error: Failed dependencies:
oracleasm-support >= 2.0.0 is needed by oracleasm-2.6.9-34.EL-2.0.3-1.i686
# rpm -ivh oracleasmlib-2.0.2-1.i386.rpm
error: Failed dependencies:
oracleasm >= 1.0.4 is needed by oracleasmlib-2.0.2-1.i386
即使可列出当前目录下的所有文件:
# ls -l
-rw-r--r-- 1 root root 126194 Aug 19 02:24 oracleasm-2.6.9-34.EL-2.0.3-1.i686.rpm
-rw-r--r-- 1 root root 12948 Aug 19 03:13 oracleasmlib-2.0.2-1.i386.rpm
-rw-r--r-- 1 root root 22662 Aug 11 02:11 oracleasm-support-2.0.3-1.i386.rpm
改变:
这可以发生在初始安装或升级。
原因:
还有的ASMLib的RPM之间的依赖关系。基于RPM
oracleasm depends on oracleasm-support
oracleasmlib depends on oracleasm
除了特定依赖版本。 “RPM”命令不看RPM文件,如果他们安装或没有。应提交的文件“RPM”命令。
解决方案:
RPM文件,可以提出“RPM”在两种常用的方法命令:
A.提供所有的RPM文件:
# rpm -ivh oracleasm-2.6.9-34.EL-2.0.3-1.i686.rpm \
oracleasmlib-2.0.2-1.i386.rpm \
oracleasm-support-2.0.3-1.i386.rpm
Preparing...
########################################### [100%]
1:oracleasm-support
########################################### [100%]
2:oracleasm-2.6.9-34.EL
########################################### [100%]
3:oracleasmlib
########################################### [100%]
B.使用通配符:
# rpm -ivh oracleasm*.rpm
Preparing...
########################################### [100%]
1:oracleasm-support
########################################### [100%]
2:oracleasm-2.6.9-34.EL
########################################### [100%]
3:oracleasmlib
########################################### [100%]