RPM installation

来源:互联网 发布:java编程思想第五版pdf 编辑:程序博客网 时间:2024/06/05 06:50

安装ORACLE10G for REL 5时发现检查少一个包。
Checking if Oracle software certified on the current O/S...
Expected result: One of redhat-3,redhat-4,SuSE-8,SuSE-9,redhat-5,SuSE-10,enterprise-5,redhat-5.1,redhat-5.2,enterprise-4,asianux-1,asianux-2
Actual Result: redhat-4
Check complete. The overall result of this check is: Passed
=======================================================================

Checking for required packages installed on the system ....
Checking for make-3.79; found make-1:3.81-3.el5. Passed
Checking for binutils-2.15.92.0.2-13; found binutils-2.17.50.0.6-12.el5. Passed
Checking for gcc-3.4.3-22.1; found gcc-4.1.2-46.el5. Passed
Checking for libaio-0.3.96; found libaio-0.3.106-3.2. Passed
Checking for glibc-common-2.3.4-2.9; found glibc-common-2.5-42. Passed
Checking for compat-libstdc++-296-2.96-132.7.2; found compat-libstdc++-296-2.96-138. Passed
Checking for libstdc++-3.4.3-22.1; found libstdc++-4.1.2-46.el5. Passed
Checking for libstdc++-devel-3.4.3-22.1; found libstdc++-devel-4.1.2-46.el5. Passed
Checking for openmotif21-2.1.30-11.RHEL4.4; found Not found. Failed <<<<
Checking for pdksh-5.2.14-30; found pdksh-5.2.14-36.el5. Passed
Checking for setarch-1.6-1; found setarch-2.0-1.1. Passed
Checking for gnome-libs-1.4.1.2.90-44.1; found Not found. Failed <<<<
Checking for sysstat-5.0.5-1; found sysstat-7.0.2-3.el5. Passed
Checking for compat-db-4.1.25-9; found compat-db-4.2.52-5.1. Passed
Checking for control-center-2.8.0-12; found control-center-1:2.16.0-16.el5. Passed
Checking for xscreensaver-4.18-5.rhel4.2; found xscreensaver-1:4.18-5.rhel4.14. Passed
Check complete. The overall result of this check is: Failed <<<<
Problem: Some required packages are missing.
Recommendation: You may actually have installed packages which have obsoleted these, in which case you can  successfully continue with the install. If you have not, it is recommended that you do not continue.
=======================================================================

Checking whether required GLIBC installed on the system ....
Expected result: ATLEAST=2.3.4-2.9
Actual Result: 2.5-42
Check complete. The overall result of this check is: Passed
=======================================================================

Checking whether the software compatibile for current o/s...
Check complete. The overall result of this check is: Passed
=======================================================================

Checking for sufficient physical memory...
Expected result: 960MB
Actual Result: 1080MB
Check complete. The overall result of this check is: Passed
=======================================================================

Checking for required kernel parameters...
Checking for semmsl=250; found semmsl=250. Passed
Checking for semmns=32000; found semmns=32000. Passed
Checking for semopm=100; found semopm=100. Passed
Checking for semmni=128; found semmni=128. Passed
Checking for shmmax=536870912; found shmmax=2147483648. Passed
Checking for shmmni=4096; found shmmni=4096. Passed
Checking for shmall=2097152; found shmall=2097152. Passed
Checking for file-max=65536; found file-max=65536. Passed
Checking for VERSION=2.6.9; found VERSION=2.6.18-164.el5xen. Passed
Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=1024 - 65000. Passed
Checking for rmem_default=262144; found rmem_default=262144. Passed
Checking for rmem_max=262144; found rmem_max=262144. Passed
Checking for wmem_default=262144; found wmem_default=262144. Passed
Checking for wmem_max=262144; found wmem_max=262144. Passed
Check complete. The overall result of this check is: Passed
=======================================================================

Checking for the Hostname...
Check complete. The overall result of this check is: Passed
=======================================================================

Checking the the DNS setup...
Check complete. The overall result of this check is: Passed
=======================================================================

Checking Static IP requirements ...
Check complete. The overall result of this check is: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses.  However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly.  See the Installation Guide for more details on installing the software on systems configured with DHCP.
=======================================================================

Checking whether parent directory provided is NFS Mounted...
Check complete. The overall result of this check is: Passed
========================================================================
在安装这个包时又有麻烦了!
[oracle@odd1 RPMS]$ rpm -i gnome-libs-1.4.1.2.90-44.1.i386.rpm
warning: gnome-libs-1.4.1.2.90-44.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        ORBit is needed by gnome-libs-1.4.1.2.90-44.1.i386
        gtk+ >= 1:1.2.5 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        imlib is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libIIOP.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libORBit.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libORBitCosNaming.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libORBitutil.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libdb.so.2 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libdb.so.2(GLIBC_2.0) is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libgdk-1.2.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libgdk_imlib.so.1 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libglib-1.2.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libgmodule-1.2.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libgtk-1.2.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libpng.so.2 is needed by gnome-libs-1.4.1.2.90-44.1.i386
[oracle@odd1 RPMS]$ rpm -i gnome-libs-1.4.1.2.90-44.1.i386.rpm   --nodeps --force
warning: gnome-libs-1.4.1.2.90-44.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
error: can't create transaction lock on /var/lib/rpm/__db.000
[oracle@odd1 RPMS]$ rpm -i gnome-libs-1.4.1.2.90-44.1.i386.rpm
warning: gnome-libs-1.4.1.2.90-44.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        ORBit is needed by gnome-libs-1.4.1.2.90-44.1.i386
        gtk+ >= 1:1.2.5 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        imlib is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libIIOP.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libORBit.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libORBitCosNaming.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libORBitutil.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libdb.so.2 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libdb.so.2(GLIBC_2.0) is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libgdk-1.2.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libgdk_imlib.so.1 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libglib-1.2.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libgmodule-1.2.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libgtk-1.2.so.0 is needed by gnome-libs-1.4.1.2.90-44.1.i386
        libpng.so.2 is needed by gnome-libs-1.4.1.2.90-44.1.i386
[oracle@odd1 RPMS]$ rpm -i gnome-libs-1.4.1.2.90-44.1.i386.rpm   --nodeps --force
warning: gnome-libs-1.4.1.2.90-44.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
error: can't create transaction lock on /var/lib/rpm/__db.000
[oracle@odd1 RPMS]$ su root
Password:
[root@odd1 RPMS]#  rpm -i gnome-libs-1.4.1.2.90-44.1.i386.rpm   --nodeps --force
warning: gnome-libs-1.4.1.2.90-44.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
然后再做检查就一切OK了。
所以在linux下安装rpm包时经常会遇到下面这个问题:
error: Failed dependencies:
.....................................................
省略号表示安装此rpm缺少的包。
遇到此问题时可以在安装rpm包命令的后面加两个参数,也就是:
rpm -i gnome-libs-1.4.1.2.90-44.1.i386.rpm 
改成:
rpm -i gnome-libs-1.4.1.2.90-44.1.i386.rpm   --nodeps --force

加上那两个参数的意义就在于,
安装时不再分析包之间的依赖关系而直接安装,
也就不会再提示error: Failed dependencies:这样的错误了。

原创粉丝点击