LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 02-13-2006, 12:39 PM   #1
baldwonder
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, VectorLinux, FreeBSD,Xubuntu
Posts: 69

Rep: Reputation: 15
Problems updating glib


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.
 
Old 02-13-2006, 03:00 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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.
 
Old 02-13-2006, 03:59 PM   #3
baldwonder
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, VectorLinux, FreeBSD,Xubuntu
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks. Doing ./configure --prefix=/usr seems to have solved the problem.

Last edited by baldwonder; 02-13-2006 at 04:09 PM.
 
Old 02-13-2006, 05:18 PM   #4
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Rep: Reputation: 33
just a shot but isant it" tar xvjf package.tar.bz2 " ?
jolphil
 
Old 02-13-2006, 09:21 PM   #5
baldwonder
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, VectorLinux, FreeBSD,Xubuntu
Posts: 69

Original Poster
Rep: Reputation: 15
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.
 
Old 02-14-2006, 07:58 AM   #6
jolphil
Member
 
Registered: May 2002
Location: central florida
Distribution: Linux Mint, ,Mageia,Ubuntu
Posts: 453

Rep: Reputation: 33
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
updating GLib..or pango...or gtk+ or etc etc nadroj Linux - Software 7 01-16-2005 01:54 AM
help with updating glib and gtk mrford Linux - Software 0 09-13-2004 06:33 PM
Updating gLib and GTK Darksun Linux - Software 1 04-24-2004 04:49 PM
updating glib toships Linux - Newbie 4 02-28-2004 06:51 PM
Updating glib slurride Slackware 1 02-22-2003 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration