LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to resolve this package dependency issue (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-resolve-this-package-dependency-issue-4175561824/)

redhatwannabe 12-19-2015 04:15 AM

How to resolve this package dependency issue
 
I installing Oracle LInux 5.8 have encountered the following problems

this is the list of rpm in the directory

Code:

[root@ol5-112-db rpm]# ls -l
total 53244
-rw-r--r-- 1 root root  3075538 Aug  1  2014 cpp-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  5524931 Aug  1  2014 gcc-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  3938320 Aug  1  2014 gcc-c++-4.1.2-55.el5.x86_64.rpm
drwxr-xr-x 2 root root    4096 Dec 16 14:46 glibc
-rw-r--r-- 1 root root  5007928 Aug 17 16:21 glibc-2.5-123.0.1.el5_11.3.x86_64.rpm
-rw-r--r-- 1 root root 17291349 Aug 17 16:21 glibc-common-2.5-123.0.1.el5_11.3.x86_64.rpm
-rw-r--r-- 1 root root  2164451 Aug 17 16:21 glibc-devel-2.5-123.0.1.el5_11.3.i386.rpm
-rw-r--r-- 1 root root  2547659 Aug 17 16:21 glibc-devel-2.5-123.0.1.el5_11.3.x86_64.rpm
-rw-r--r-- 1 root root  2547205 Sep 17  2014 glibc-devel-2.5-123.0.1.x86_64.rpm
-rw-r--r-- 1 root root  616733 Sep 17  2014 glibc-headers-2.5-123.0.1.x86_64.rpm
-rw-r--r-- 1 root root  1579980 Nov 12 01:46 kernel-headers-2.6.18-407.el5.x86_64.rpm
-rw-r--r-- 1 root root    11790 Feb 18  2010 libaio-devel-0.3.106-5.i386.rpm
-rw-r--r-- 1 root root    11675 Feb 18  2010 libaio-devel-0.3.106-5.x86_64.rpm
-rw-r--r-- 1 root root    99620 Aug  1  2014 libgcc-4.1.2-55.el5.i386.rpm
-rw-r--r-- 1 root root  102409 Aug  1  2014 libgcc-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  362778 Aug  1  2014 libstdc++-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  2938653 May 11  2012 libstdc++-devel-4.1.2-52.el5_8.1.x86_64.rpm
-rw-r--r-- 1 root root  2938799 Aug  1  2014 libstdc++-devel-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  193603 Aug  1  2014 sysstat-7.0.2-13.0.1.el5.x86_64.rpm
-rw-r--r-- 1 root root  296693 Dec 28  2011 unixODBC-2.2.11-10.el5.i386.rpm
-rw-r--r-- 1 root root  298179 Dec 28  2011 unixODBC-2.2.11-10.el5.x86_64.rpm
-rw-r--r-- 1 root root  755981 Dec 28  2011 unixODBC-devel-2.2.11-10.el5.i386.rpm
-rw-r--r-- 1 root root  812394 Dec 28  2011 unixODBC-devel-2.2.11-10.el5.x86_64.rpm
-rw-r--r-- 1 root root  564491 Dec 28  2011 unixODBC-libs-2.2.11-10.el5.i386.rpm
-rw-r--r-- 1 root root  567675 Dec 28  2011 unixODBC-libs-2.2.11-10.el5.x86_64.rpm

when I chained installed i encounter the following problem:

Code:


[root@ol5-112-db rpm]# ls -l
total 53244
-rw-r--r-- 1 root root  3075538 Aug  1  2014 cpp-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  5524931 Aug  1  2014 gcc-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  3938320 Aug  1  2014 gcc-c++-4.1.2-55.el5.x86_64.rpm
drwxr-xr-x 2 root root    4096 Dec 16 14:46 glibc
-rw-r--r-- 1 root root  5007928 Aug 17 16:21 glibc-2.5-123.0.1.el5_11.3.x86_64.rpm
-rw-r--r-- 1 root root 17291349 Aug 17 16:21 glibc-common-2.5-123.0.1.el5_11.3.x86_64.rpm
-rw-r--r-- 1 root root  2164451 Aug 17 16:21 glibc-devel-2.5-123.0.1.el5_11.3.i386.rpm
-rw-r--r-- 1 root root  2547659 Aug 17 16:21 glibc-devel-2.5-123.0.1.el5_11.3.x86_64.rpm
-rw-r--r-- 1 root root  2547205 Sep 17  2014 glibc-devel-2.5-123.0.1.x86_64.rpm
-rw-r--r-- 1 root root  616733 Sep 17  2014 glibc-headers-2.5-123.0.1.x86_64.rpm
-rw-r--r-- 1 root root  1579980 Nov 12 01:46 kernel-headers-2.6.18-407.el5.x86_64.rpm
-rw-r--r-- 1 root root    11790 Feb 18  2010 libaio-devel-0.3.106-5.i386.rpm
-rw-r--r-- 1 root root    11675 Feb 18  2010 libaio-devel-0.3.106-5.x86_64.rpm
-rw-r--r-- 1 root root    99620 Aug  1  2014 libgcc-4.1.2-55.el5.i386.rpm
-rw-r--r-- 1 root root  102409 Aug  1  2014 libgcc-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  362778 Aug  1  2014 libstdc++-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  2938653 May 11  2012 libstdc++-devel-4.1.2-52.el5_8.1.x86_64.rpm
-rw-r--r-- 1 root root  2938799 Aug  1  2014 libstdc++-devel-4.1.2-55.el5.x86_64.rpm
-rw-r--r-- 1 root root  193603 Aug  1  2014 sysstat-7.0.2-13.0.1.el5.x86_64.rpm
-rw-r--r-- 1 root root  296693 Dec 28  2011 unixODBC-2.2.11-10.el5.i386.rpm
-rw-r--r-- 1 root root  298179 Dec 28  2011 unixODBC-2.2.11-10.el5.x86_64.rpm
-rw-r--r-- 1 root root  755981 Dec 28  2011 unixODBC-devel-2.2.11-10.el5.i386.rpm
-rw-r--r-- 1 root root  812394 Dec 28  2011 unixODBC-devel-2.2.11-10.el5.x86_64.rpm
-rw-r--r-- 1 root root  564491 Dec 28  2011 unixODBC-libs-2.2.11-10.el5.i386.rpm
-rw-r--r-- 1 root root  567675 Dec 28  2011 unixODBC-libs-2.2.11-10.el5.x86_64.rpm


Code:


[root@ol5-112-db rpm]# rpm -Uvh *.rpm
warning: package glibc-devel = 2.5-123.0.1.el5_11.3 was already added, skipping glibc-devel < 2.5-123.0.1
warning: package libstdc++-devel = 4.1.2-52.el5_8.1 was already added, replacing with libstdc++-devel >= 4.1.2-55.el5
error: Failed dependencies:
        glibc-headers = 2.5-123.0.1.el5_11.3 is needed by glibc-devel-2.5-123.0.1.el5_11.3.i386
        glibc-headers = 2.5-123.0.1.el5_11.3 is needed by glibc-devel-2.5-123.0.1.el5_11.3.x86_64
        glibc = 2.5-123.0.1 is needed by glibc-headers-2.5-123.0.1.x86_64
        glibc-common = 2.5-81 is needed by (installed) glibc-2.5-81.i686

what's the problem here? I just could not figure out what's wrong

thanks

unSpawn 12-19-2015 04:58 AM

Quote:

Originally Posted by redhatwannabe (Post 5466280)
what's the problem here?

First of all Oracle Linux 5 is at Update 11.
Secondly its EOL is March 2017 so ensure you should be using 5 and not 6.
Third you should not be using low level tools like 'rpm' (you will know when you really need it) but use the high level package management tools, which in your case means YUM.
Fourth, when you post diagnostic nfo then also post the actual commands you encountered problems with and their respective stdout + stderr output.


All times are GMT -5. The time now is 10:54 AM.