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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-13-2005, 12:43 PM
|
#1
|
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:
|
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?
|
|
|
01-13-2005, 01:35 PM
|
#2
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Try reinstalling glib and then running "ldconfig" when you have finished, then try installing gtk.
|
|
|
01-13-2005, 01:41 PM
|
#3
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
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.
|
|
|
01-13-2005, 02:07 PM
|
#4
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
01-13-2005, 04:21 PM
|
#5
|
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:
|
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.
|
|
|
01-13-2005, 04:22 PM
|
#6
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
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
|
|
|
01-13-2005, 05:06 PM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
01-13-2005, 05:11 PM
|
#8
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
01-13-2005, 09:14 PM
|
#9
|
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:
|
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 09:21 PM.
|
|
|
01-14-2005, 12:24 AM
|
#10
|
Senior Member
Registered: Jun 2004
Posts: 2,553
Rep:
|
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
|
|
|
01-14-2005, 02:05 AM
|
#11
|
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:
|
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
but it does not exist. Now what?
|
|
|
01-14-2005, 02:38 AM
|
#12
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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 02:40 AM.
|
|
|
01-14-2005, 07:34 AM
|
#13
|
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:
|
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
|
|
|
01-14-2005, 07:37 AM
|
#14
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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)).
|
|
|
All times are GMT -5. The time now is 05:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|