LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I installed the missing dependency...it still complains.. (https://www.linuxquestions.org/questions/linux-newbie-8/i-installed-the-missing-dependency-it-still-complains-642298/)

cybernike 05-15-2008 01:14 AM

I installed the missing dependency...it still complains..
 
I have RHEL5.

I did: [root@xxx Desktop]# rpm -Uvh gmp-4.2.2-7.fc9.i386.rpm

and I got the following warning and error:

warning: gmp-4.2.2-7.fc9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
libgmpxx.so.3 is needed by (installed) gmp-devel-4.1.4-10.el5.i386

What's the warning about? Also, I installed libgmpxx.so.3 and it is in /usr/lib64 . Why is it still complaining??

Thanks.

premnarayan 05-15-2008 02:12 AM

Upgrading gmp is also upgrading libgmp (libgmpxx.so.4 is present in gmp-4.2.2-7). The older libgmp is needed by the older gmp-devel and hence you get the complaint by the package manager. Upgrade the devel package too and you should be fine.

lazlow 05-15-2008 11:08 AM

The other problem is that you are using a Fedora 9 rpm on RHEL5.

cybernike 05-15-2008 01:12 PM

Lazlow,
I know it is a Fedora rpm, I need gmp 4.2 to install the mprf library for GCC 4.3. I'd like to upgrade my gcc from 4.1.2 to 4.3.


premnarayan,

I also tried to upgrade the devel package and I got:
rpm -Uvh gmp-devel-4.2.2-7.fc9.i386.rpm
warning: gmp-devel-4.2.2-7.fc9.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
gmp = 4.2.2-7.fc9 is needed by gmp-devel-4.2.2-7.fc9.i386
libgmpxx.so.4 is needed by gmp-devel-4.2.2-7.fc9.i386

So it seems I need to install gmp = 4.2.2-7.fc9 first, but then it goes back to the old problem. Any thoughts?

lazlow 05-15-2008 01:18 PM

You really cannot(reliably) use rpms from one distro (or version) on another. This is one of those cases where compiling from source is the answer.

Switching GCC versions on a system is not an easy thing to do. It would be a lot easier just to install F9 and go that route.

cybernike 05-15-2008 01:21 PM

lazlow, we just can't switch our entire OS because of GCC. Thanks though.

Any other thoughts?

lazlow 05-15-2008 06:59 PM

On RPM based distros the GCC version is very tightly tied to the OS. So be prepared for a workout.

premnarayan 05-16-2008 12:12 AM

Try this:
rpm -Uvh gmp-devel-4.2.2-7.fc9.i386.rpm gmp-4.2.2-7.fc9.i386.rpm

cybernike 05-16-2008 04:21 AM

Thanks everyone. I successfully upgraded my gcc from 4.1 to 4.2. The key was to build everything from source.


All times are GMT -5. The time now is 04:40 PM.