LinuxQuestions.org
Visit Jeremy's Blog.
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 11-20-2003, 11:51 AM   #1
giill
LQ Newbie
 
Registered: Oct 2003
Posts: 17

Rep: Reputation: 0
Pb installing glib, atk, pango, gtk


Hi,
I'm newbee with linux. I have installed Mandrake 9.2 on my laptop. Now, I'm tryng to install librairies. Infact I need to install GTK+. But it requires previous installations first: atk, pango and glib libraries. I have downloaded the source of these librairies, copy them into /usr/src, then untar them (tar xvzf). For each librairy, I did:
./configure
make
make install

When I try then to install GTK+, i do:
./configure

An error mesage appears :
"checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >=...package atk was not found in the pkg-config searhc path.
Perhaps you should add the directory containing 'atk.pc' to the PKG_CONFIG_PATH environment variable
No package 'atk' found

configure: error: Library requirements (glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your librairies are in a nonstandard prefix so pkg-config can find them."

Any help would be welcomed !!!

Thanks.
 
Old 11-20-2003, 12:22 PM   #2
stickfigure
LQ Newbie
 
Registered: Oct 2003
Location: Columbus, OH
Distribution: Gentoo & Mandrake 9.1
Posts: 20

Rep: Reputation: 0
For all these libraries do this

./configure --prefix=/usr

That has resolved this issue for many other people in this forum.
 
Old 11-20-2003, 01:23 PM   #3
giill
LQ Newbie
 
Registered: Oct 2003
Posts: 17

Original Poster
Rep: Reputation: 0
OK, seems to work. Thank you.
I've just got a problem 'cause I don't have the TIFF library, so I can't execute the make properly (or I have to put arguments not to consider this library). I'm going to download the source, and install this library, and I will see if it's OK.
 
Old 11-20-2003, 04:27 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Or you could let them install where they want, open ~/.bashrc and add the line
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
Or you could avoid all the hastle of downloading and compiling by just installing them with RpmDrake of the Mandrake CD's. They're mostly called libwhatever2.0-devel-morenumbers.mdk but they are all there.
 
Old 11-21-2003, 02:26 AM   #5
giill
LQ Newbie
 
Registered: Oct 2003
Posts: 17

Original Poster
Rep: Reputation: 0
OK thanks for these information.
Well in fact, I've tried to compile each library, then install them.
For Atk, Glib, Pango, seems to be OK. GTK is apparently OK too, I haven't got the error message (missing libraries) anymore.
But when I try to install Gimp for example (and many other applications), I have another error:
"Checking for gtk-config...no
Checking for GTK-version >= 1.2.8...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.

configure : error : Test for GTK failed. See the file 'INSTALL' for help."

I think this can be resolved with the solution given in the previous post (adding a line in ~/.bashrc
In fact I was looking where I could modify PKG_CONFIG_PATH, 'cause it was often a cause of problem. Why can't I see this var when i execute the 'env' command ?

Thanks again.
 
Old 11-21-2003, 07:13 AM   #6
giill
LQ Newbie
 
Registered: Oct 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Well I've tried to add the line in ~/.bashrc, but it doesn't change anything.
For example, when I try to execute ./configure for the installation of xmms, I get the following error:
"checking for glib-config... no
checking for GLIB - version >= 1.2.2... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: *** GLIB >= 1.2.2 not installed - please install first ***

I don't understand. For GLIB, i really did :
./configure --prefix=/usr
make
make install

Which is I think the right procedure, isn't it?

Can anyone tell me more about these libraries not found and the way to fix it ???

Thank you.
 
Old 11-21-2003, 11:15 AM   #7
stickfigure
LQ Newbie
 
Registered: Oct 2003
Location: Columbus, OH
Distribution: Gentoo & Mandrake 9.1
Posts: 20

Rep: Reputation: 0
Okay, so if you installed like I had recommended
./configure --prefix=/usr

And you're getting those errors, have you tried...

export PATH=$PATH:/usr/bin

And then...
(for example: xmms or gimp)

./configure


this should work
 
Old 11-22-2003, 01:50 AM   #8
giill
LQ Newbie
 
Registered: Oct 2003
Posts: 17

Original Poster
Rep: Reputation: 0
Well it doesn't work...
I don't understand. I'm sure I've made something wrong, but it's getting on my nerves !!
I have downloaded the source files (for librairies atk, glib, pango) in /usr/local/src.
I untar them in this directory. I've installed them again with 'configure --prefix=/usr', then 'make' and 'make install', all commands as root.
My source files for gtk,gimp,xmms are also in /usr/local/src.
I untar them too, use the same commands.
For gtk, my first install try didn't work, it told me some librairies were not found (atk, glib, pango). So I've configured again those librairies with the command 'configure --prefix=/usr', then 'make' and 'make install'. Then it was possible to configure correctly GTK, to make it and install it (there was few warnings about unreferenced pointers I think during the procedure, is that wrong?)
So I thought it was right. But when I try to install xmms for example (which is rather faster to compile than gimp for testing!!), I've got the same error than the one I've already mentionned (Glib not found):
"
...
checking for pthread.h... yes
checking for glib-config... no
checking for GLIB - version >= 1.2.2... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: *** GLIB >= 1.2.2 not installed - please install first ***"

I have executed the command 'export PATH=$PATH:/usr/bin' as root, and then try to configure again xmms...Same result !

Please help, I really need to install these applications (just a question, how do I run GTK when I've installed it, I mean I want to develop with it, what do I have to do, is there a special editor, or may I use any editor I want, and compile with a special gtk command??). Linux is a very good system, but a bit hard for newbie as I am...
I will have a try with the RpmDrake, but the problem is that I won't learn anything doing that, so that if I meet the same problem in the future, I won't be able to solve it...
Thanks for your help.
 
Old 11-23-2003, 01:25 PM   #9
stickfigure
LQ Newbie
 
Registered: Oct 2003
Location: Columbus, OH
Distribution: Gentoo & Mandrake 9.1
Posts: 20

Rep: Reputation: 0
The thing is I had the same problem when I was trying to install XChat, said I needed GTK2. So when I went to install GTK it told me I was missing all those other libraries. So for (in this order) atk -> glib -> pango -> gtk I did...

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

I think I also installed all the dependencies listed on the gtk site with the /usr prefix also, that was probably the first thing.

Then when I installed XChat I'm not sure if I used the /usr prefix or not, but if you haven't yet, give that a try.

My install turned out okay
 
  


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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
Installing GFTP...and gtk, atk, pango... hongman Linux - Software 19 02-20-2005 03:02 PM
Been fighting gtk,glib,atk,pango for days. whansard Linux - Software 0 12-18-2004 10:18 AM
Help!!! How to install GLib, GTK, ATK and Pango, just to get Firefox running. LOL RJARRRPCGP Linux - Newbie 7 11-20-2004 05:42 PM
Installing Glib, ATK, GTK, Pkg Config, and Pango! LinuZ Linux - Newbie 9 10-26-2003 02:58 PM

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

All times are GMT -5. The time now is 03:25 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