Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to update glib (and subsequently gtk). I've downloaded the files and followed the instructions in the INSTALL file. But for some reason, the libraries don't seem to be updated. Here is exactly what I did:
tar xvfj glib-2.8.6.tar.bz2
cd glib-2.8.6
./configure
make
make install
ldconfig
Everything completes without an error. Now when I check the version with pkg-config, I get 2.6.1. Since it doesn't recognize the newer version of glib, gtk gets an error when I try ./configure. Any help would be appreciated.
Help us to help you...gtk gets an error doesn't tell us much. What error? Post it here... (put it inside [code ] [/ code] brackets (without the spaces).
To install gtk you need glib, pango and atk too...before you install gtk. My guess is that's why it's failing. Also, do:
./configure --prefix=/usr
rather than just ./configure, for each stage and run ldconfig (that's LDconfig) as root after doing make install on each step.
As far as I know, the order of the options doesn't matter as long as one of the function letters comes first . Check the man pages on tar for more information.
I finally got everything working, but it took a few tries. Here is something weird I found:
I had to compile everything twice (glib, pango, cairo, etc...), except gtk, to get everything to work correctly. Compiling glib with --prefix=/usr allowed pkg-config to see the correct version, but when I went to compile gtk, I got an error that said something like "pkg-config says the version is 2.8.5 but the files are version 2.6.1" Compiling and installing with "./configure --prefix=/usr" and then compiling and installing with just "./configure" got rid of this error. Same with pango. Compiling and installing with "./configure --prefix=/usr" got gtk to compile, but firefox stopped working until I recompiled and installed with just "./configure" Of course after each round of configuring, I ran make, make install, and ldconfig. But once I did all this, I compiled gtk with "./configure --prefix=/usr", make, make install, and ldconfig. Then everything worked. Thanks again for all the help.
Hi,
Glad you got it working..The reason I replied was I remember reading the f argument expects to be followed by the file name but since then, I went back and read further down and found some versions of tar don't care about order..
anyway again,glad it going..
jolphil
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.