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. |
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.
|
The other problem is that you are using a Fedora 9 rpm on RHEL5.
|
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? |
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. |
lazlow, we just can't switch our entire OS because of GCC. Thanks though.
Any other thoughts? |
On RPM based distros the GCC version is very tightly tied to the OS. So be prepared for a workout.
|
Try this:
rpm -Uvh gmp-devel-4.2.2-7.fc9.i386.rpm gmp-4.2.2-7.fc9.i386.rpm |
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. |