LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-13-2005, 11:43 AM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
GTK+ 2.6.0 installation problems


I'm trying to install GTK+ 2.6.0
It requires 3 dependencies: atk, pango, GLIB

I first installed GLIB 2.6.0 using ./configure, make, and make install.
Everything went fine.

I then went to install atk and did ./configure and got this at the end:

checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.5.7... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLIB 2.5.7 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

I then typed:
Code:
[root@ken atk-1.9.0]# locate glib-2.0.pc
/usr/lib/pkgconfig/glib-2.0.pc
So then I did

Code:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
I still get the same error.

So then I did as root

Code:
pkg-config /usr/lib/pkgconfig
and I still get the same error when trying to ./configure atk. What's going on? Why doesn't my system know that I have GLIB installed?
 
Old 01-13-2005, 12:35 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Try reinstalling glib and then running "ldconfig" when you have finished, then try installing gtk.
 
Old 01-13-2005, 12:41 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Re: GTK+ 2.6.0 installation problems

Quote:
Originally posted by Micro420

I first installed GLIB 2.6.0 using ./configure, make, and make install.
Everything went fine.
This will install glib in it's default location, /usr/local, so you need to set your PKG_CONFIG_PATH to include /usr/local/lib/pkgconfig. But that's not the end of it. You're going to need to set about half a dozen CPPFLAGS and LDFLAGS and stuff to force atk, pango and gtk to link against the things you've installed in /usr/local and stop them linking to the old libraries you have in /usr/lib. Reading this may help.
 
Old 01-13-2005, 01:07 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
It would probably be easier, to

$./configure --prefix=/usr
$make
#make install

I know some people don't like installing stuff they compiled from source in /usr, but in this case you may save yourself a lot of time and effort.
 
Old 01-13-2005, 03:21 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Re: Re: GTK+ 2.6.0 installation problems

Quote:
Originally posted by Andrew Benton
This will install glib in it's default location, /usr/local, so you need to set your PKG_CONFIG_PATH to include /usr/local/lib/pkgconfig. But that's not the end of it. You're going to need to set about half a dozen CPPFLAGS and LDFLAGS and stuff to force atk, pango and gtk to link against the things you've installed in /usr/local and stop them linking to the old libraries you have in /usr/lib. Reading this may help.
I did read that GNOME link and it confused me as I don't know why they installed GTK in /opt, or what the heck all those other things are (CPPFLAHGS, LDFLAGS). I went into my /opt directory and there isn't anything there. I thought it was odd to play it in the /opt directory. I will try the prefix=/usr and see what happens.
 
Old 01-13-2005, 03:22 PM   #6
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
Originally posted by reddazz
It would probably be easier, to

$./configure --prefix=/usr
yea this will overwrite old glib and stuff and fix the conflict but you might end up with all your apps that use glib gtk2 broken and in need of recompiling
 
Old 01-13-2005, 04:06 PM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Never had that problem, but maybe it's coz I tend to upgrade glib and gtk at the same time and usually in text mode.
 
Old 01-13-2005, 04:11 PM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Whenever I upgrade something on the base system, I try to always install it in the same prefix it came out of. I think it keeps the system cleaner ( as in not having gnome and its deps all over the file system)
and is just my preference.

ps -- When you configure pango make sure it list Xft as a backend before you build it.
 
Old 01-13-2005, 08:14 PM   #9
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Thanks for all your help, guys! I did ./configure --prefix=/usr and I did not have any more errors. I managed to install GTK+2.6.1 WITHOUT libtiff. I hope this was okay for me to do?

*** Should I have done ./configure --prefix=/usr for GTK+2.6.1, also? I just did a default ./configure for GTK+2.6.1. Will this create problems?

Last edited by Micro420; 01-13-2005 at 08:21 PM.
 
Old 01-13-2005, 11:24 PM   #10
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i would put glib gtk+ atk and pango all in /usr
if that's where thry were to begin with
look in /usr/lib
it's ok to leave out optional dependancies like libtiff
as long as no behaviour you need is missing
if later you find you need libtiff just go back and redoit
 
Old 01-14-2005, 01:05 AM   #11
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
So I installed gtk+ 2.6.1 using ./configure --prefix=/usr

Everything seemed to go fine, but when I try to ./configure this program called smpeg, I get this:

checking for gtk-config... (cached) no
checking for GTK - version >= 1.2.1... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.

I typed

Code:
locate gtk-config
but it does not exist. Now what?
 
Old 01-14-2005, 01:38 AM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Did you do, "ldconfig" as root, when you had finished installing GTK. Also, smpeg seems to be asking for gtk1.x and not gtk 2.x. You may need to have both installed coz some programs have not been ported to gtk2.

Last edited by reddazz; 01-14-2005 at 01:40 AM.
 
Old 01-14-2005, 06:34 AM   #13
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by reddazz
Did you do, "ldconfig" as root, when you had finished installing GTK. Also, smpeg seems to be asking for gtk1.x and not gtk 2.x. You may need to have both installed coz some programs have not been ported to gtk2.
I just ran ldconfig as root just now and tried to compile the program, sdmpeg and got the same error. Perhaps you are right in that it is looking for an older version of GTK... 1.2.1! That's pretty old, isn't it? LOL
 
Old 01-14-2005, 06:37 AM   #14
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
thats what it's looking for. But theres alot of apps out there which are gtk-1.2.x only (like reddazz posted they are not ported yet ( and some will never be)).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GTK+ 2.4.0 installation problems wizzardx Linux - Software 4 05-22-2005 05:25 PM
Many GTK Installation problems simeandrews Mandriva 55 02-11-2005 05:32 AM
Problems with gtk installation Paddington Linux - Software 1 12-22-2004 11:54 AM
Installation problems with GTK+-2.2 melange Linux - Newbie 3 03-08-2004 11:02 AM
GTK+-2.2 installation problems m1-rail Linux - Newbie 2 01-05-2003 05:38 PM

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

All times are GMT -5. The time now is 09:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration