Total Pageviews

Thursday 17 May 2012

install of cpp-3.4.3-9.EL4.x86_64.rpm conflicts with file from package cpp-3.4.4-2

Cause:    gcc-3.4.3-9.EL4.x86_64.rpm is missing

Below are the steps used and errors i faced while installing the rpm  gcc-3.4.3-9.EL4.x86_64.rpm :

##### To install  gcc-3.4.3-9.EL4.x86_64.rpm ######
[root@SUMITDBSERVER rpm]# rpm -ivh gcc-3.4.3-9.EL4.x86_64.rpm

error: Failed dependencies:
cpp 3.4.3-9.EL4 is needed by gcc-3.4.3-9.EL4.x86_64
glibc-devel-2.3.4-2.13.x86_64.rpm is needed by gcc-3.4.3-9.EL4.x86_64

[root@SUMITDBSERVER rpm]# rpm -ivh glibc-devel-2.3.4-2.13.x86_64.rpm
warning: glibc-devel-2.3.4-2.13.x86_64.rpm: V3 DSA signature: NOKEY, key ID a704
error: Failed dependencies:
glibc-headers is needed by glibc-devel-2.3.4-2.13.x86_64
glibc-headers = 2.3.4-2.13 is needed by glibc-devel-2.3.4-2.13.x86_64
Suggested resolutions:
glibc-headers-2.3.4-2.13.x86_64.rpm

[root@SUMITDBSERVER rpm]# rpm -ivh glibc-headers-2.3.4-2.13.x86_64.rpm
warning: glibc-headers-2.3.4-2.13.x86_64.rpm: V3 DSA signature: NOKEY, key ID a7
error: Failed dependencies:
kernel-headers is needed by glibc-headers-2.3.4-2.13.x86_64
kernel-headers >= 2.2.1 is needed by glibc-headers-2.3.4-2.13.x86_64
Suggested resolutions:
glibc-kernheaders-2.4-9.1.98.EL.x86_64.rpm
[root@SUMITDBSERVER rpm]# rpm -ivh glibc-kernheaders-2.4-9.1.98.EL.x86_64.rpm
warning: glibc-kernheaders-2.4-9.1.98.EL.x86_64.rpm: V3 DSA signature: NOKEY, ke
Preparing... ########################################### [100%]
1:glibc-kernheaders ########################################### [100%]
[root@SUMITDBSERVER rpm]# rpm -ivh glibc-headers-2.3.4-2.13.x86_64.rpm
warning: glibc-headers-2.3.4-2.13.x86_64.rpm: V3 DSA signature: NOKEY, key ID a7
Preparing... ########################################### [100%]
1:glibc-headers ########################################### [100%]
[root@SUMITDBSERVER rpm]# rpm -ivh glibc-devel-2.3.4-2.13.x86_64.rpm
warning: glibc-devel-2.3.4-2.13.x86_64.rpm: V3 DSA signature: NOKEY, key ID a704
Preparing... ########################################### [100%]
1:glibc-devel ########################################### [100%]
[root@SUMITDBSERVER rpm]# rpm -ivh gcc-3.4.3-9.EL4.x86_64.rpm
warning: gcc-3.4.3-9.EL4.x86_64.rpm: V3 DSA signature: NOKEY, key ID a7048f8d
error: Failed dependencies:
cpp = 3.4.3-9.EL4 is needed by gcc-3.4.3-9.EL4.x86_64
[root@SUMITDBSERVER rpm]# rpm -q cpp
cpp-3.4.4-2
[root@SUMITDBSERVER rpm]# rpm -ivh cpp-3.4.3-9.EL4.x86_64.rpm
warning: cpp-3.4.3-9.EL4.x86_64.rpm : V3 DSA signature: NOKEY, key ID 192a7d7d
Preparing... ########################################### [100%]
file /usr/bin/cpp from install of cpp-3.4.3-9.EL4.x86_64.rpm conflicts with file from package cpp-3.4.4-2
file /usr/libexec/gcc/x86_64-redhat-linux/3.4.3/cc1 from install of cpp-3.4.3-9.EL4.x86_64.rpm conflicts with file from package cpp-3.4.4-2
file /usr/share/man/man1/cpp.1.gz from install of cpp-3.4.3-9.EL4.x86_64.rpm conflicts with file from package cpp-3.4.4-2
Issue: The problem here is that we had  cpp-3.4.4-2 RPM installed on the system but oracle x86_64 needs  cpp-3.4.3-9.EL4.x86_64.rpm .When we are trying to install the cpp-3.4.3-9 RPM it is conflicting with the existing files of the cpp package:
Solution:
Replace the files of cpp-3.4.3-9.EL4 with the  cpp-3.4.3-9.EL4.x86_64.rpm files forcefully.

rpm -Uvh --replacefiles cpp-3.4.3-9.EL4.x86_64.rpm

Now we can install gcc-3.4.3-9.EL4.x86_64.rpm as all the dependent RPMS have been successfully installed.

[root@SUMITDBSERVER rpm]# rpm -ivh gcc-3.4.3-9.EL4.x86_64.rpm

Preparing... ########################################### [100%]
1:
gcc-3.4.3-9 ########################################### [100%]

No comments:

Post a Comment