Click to See Complete Forum and Search --> : What can you say about pkg-config?


Weron
02-09-2003, 12:12 PM
Here is ma problem:
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether make sets ${MAKE}... (cached) yes
checking for pkg-config... /usr/local/bin/pkg-config
checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... Package atk was not found in the pkg-config search 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 libraries are in a nonstandard prefix so pkg-config can find them.
bash-2.05a$
In ma Slackware 8.1 are
glib-2.2.1 ,pango-1.2.1,atk-1.2.2.
So I don't understand where is the problem?
Maybe pkg-config?
Could you tell me what I must to do?

viperlin
02-09-2003, 12:21 PM
try installing the atk devel package

Weron
02-09-2003, 03:03 PM
Originally posted by viperlin
try installing the atk devel package
In Slackware?
Hmm.
So where I find it?

viperlin
02-09-2003, 03:28 PM
slackware? no idea, soz, i thought u would be using a RPM based distro like me.

u probably just need to specify the location of atk when running ./configure

run ./configure --help to see how to add the location of atk

Puloxor
02-09-2003, 06:16 PM
You will need to install those packages (glib, pango, atk), you can find them on freshmeat.net. Once they are installed (or if they are already installed), you can try the ./configure again. If you still get that error, that means the installation cant find them. I'm not sure about Slackware, but the default install for Mandrake is in /usr/local/bin, you can probably use the command 'whereis atk' to find where its installed. Once you know where its installed, you need to tell the installation package that. You use the command:

export PKG_CONFIG_PATH=<path to installed files>

For example, if 'whereis atk' returned /usr/local/bin/atk, you would use the command:

export PKG_CONFIG_PATH=/usr/local/bin
then do the ./configure

Allen614
02-09-2003, 06:44 PM
In a root term do "ldconfig" or check /etc/ld.so.conf for these entrys.

/usr/local/lib
/usr/X11R6/lib
/usr/i386-slackware-linux/lib
/opt/kde/lib
/usr/lib/qt/lib

AdaHacker
02-09-2003, 10:39 PM
Well, Puloxor got closer than anyone else....

This error message means one of two things:
1) You haven't installed ATK. Slackware doesn't come with ATK, so you would have to install it from source.
2) You installed ATK in a prefix that is not searched by pkg-config.

If you haven't installed ATK, then I'd say the solution to your problem is pretty clear. :D

If you have installed ATK, then your problem is probably pkg-config. I wrote up a small summary of how pkg-config works (http://www.cs.sunyit.edu/~geerp/linux/pkgconfig.html) so that I wouldn't have to type the same thing every time I answer this question. It should give you enough information to solve your problem.

And just for the sake of correctness:
1) ATK is a library, not a program, so whereis won't help you.
2) ldconfig configures the loader. This error was given by the configure script, which means the program isn't even compiled yet, so the loader is pretty much irrelevant at this point.

Puloxor
02-09-2003, 11:51 PM
Oops, haven't done this in a while! I'm just a newb myself =)

I believe you can use the command 'locate' to find things that aren't programs.. but first as root, you use 'updatedb' to index everything

Weron
02-10-2003, 11:29 AM
OK.
Tnx all for help.
I saw these posts so I'll try resolve may problem with it.
And I want to add a one thing.
I have installed ATK but the program didn't find the one.