Click to See Complete Forum and Search --> : Upgrading gtk with source
juicelooser
11-19-2003, 11:10 PM
I currently want to upgrade GTK so I can use the music program rhythmbox. I am running Mandrake 9.1, so it is installed as an RPM. If I try to uninstall the RPM to install the source, a ton of dependencies pop up. Is there any way to upgrade gtk while keeping those programs installed?
Thanks,
Kyle
Originally posted by juicelooser
Is there any way to upgrade gtk while keeping those programs installed?
What do you mean by "keeping those programs installed"?
What are the dependencies that it is asking for? You should try install them.
Anyway.. there's a way to force force a rpm to be upgraded:
rpm -Uvh --nodeps package_name.rpm
juicelooser
11-19-2003, 11:25 PM
well, i want to force a program to be uninstalled without uninstalling all of the programs that have gtk as a dependency.
Then do:
rpm -e --nodeps package_name
The --nodeps option will tell rpm to do not even check if there's any dependency.
the_darkhorse13
11-19-2003, 11:39 PM
I've actually done what you're describing. You're looking for trouble if it doesn't go smoothly. Also Rhythm Box will complain about a lot more things other than gtk2, most likely everything in GNOME will need to be updated, which is a lost cause.
But if you want to know anyways, I compiled gtk2 with the Ximian patches and installed them successfully. However I never uninstalled the original rpm for sake of dependencies. I did uninstall the gtk2-devel since it didn't complain. I just installed the newly compiled version over the original. It's crude, but it works. Yet, I'm not encouraging it because it might play up with your system if something is there that it doesn't like, which WILL happen since gtk2 requires a lot of other programs to be more up-to-date than what mdk 9.2 has.
GaryJones32
11-20-2003, 12:59 PM
there is no reason i know of why you can't have gtk1 and gtk2
(it's actually rather necessary)
both on your system (shouldn't have to updrade or remove gtk1)
to compile gtk2 from source you will have to start with
it's dependancies
generally speaking:
Glib2
Pango 1.2
Atk 1.2
make sure you have Xfree devalopement headers and libraries
then compile gtk2
juicelooser
11-20-2003, 04:11 PM
there is no reason i know of why you can't have gtk1 and gtk2
Well, I have gtk2 installed, but it's 2.2.1, and rhythmbox requires 2.2.2 or greater. Are there any problems with having both of these installed, or am I going to have to go about it a different way (i.e., somehow updating the rpm?).
Thanks for your help so far.
You won't be able to install two versions of the same package name.
To upgrade a package, as I already said, is:
rpm -Uvh package_name.rpm
juicelooser
11-20-2003, 07:05 PM
Oh, I though that running rpm -Uvh, just installed a package.
I'll try that then.
juicelooser
11-20-2003, 07:29 PM
well, i got gtk installed, and rhythmbox installed smoothly, but when I run the command 'rhythmbox', I get this:
[kyle@kyle kyle]$ rhythmbox
INFO (15122: 0) Initializing GStreamer Core Library version 0.6.3
INFO (15122: 0) CPU features: (c1c3fbff) MMX SSE 3DNOW MMXEXT
INFO (15122: 0) registry: loaded global_registry in 0.031001 seconds
(/var/cache/gstreamer-0.6/registry.xml)
Segmentation fault
I'm about to give up with this whole rhythmbox thing- I don't think it's worth the agony of getting it to install.
Any last ideas though, before I give up?