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.
|
|
08-30-2003, 11:48 PM
|
#1
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Rep:
|
GTK+-2.2: errors during ./configure
Here's the errors:
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.
[scruff@localhost gtk+-2.2.0]$ whereis glib-2.0
glib-2: /usr/lib/glib-2.0 /usr/include/glib-2.0 /usr/share/glib-2.0
[scruff@localhost gtk+-2.2.0]$ whereis pango
pango: /etc/pango /usr/lib/pango /usr/local/etc/pango /usr/local/lib/pango
I downloaded and installed atk and pango and I get the same errors.
Searching the net showed I'm not the only one that's had this prob, though I have yet to see a solution. Anyone here get past this install?
|
|
|
08-31-2003, 12:24 AM
|
#2
|
Member
Registered: Feb 2003
Location: Europe
Distribution: Debian
Posts: 45
Rep:
|
Did you have a look at the Gome Installation Guide? This is sort of overkill, I admit, but it got lots of hints and tips and it also covers the installation of pango, atk, and gtk+
Good luck.
|
|
|
08-31-2003, 12:44 AM
|
#3
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Original Poster
Rep:
|
Just looked. Nothing specific to my problem. I will keep searching though
<bump>
|
|
|
08-31-2003, 12:49 AM
|
#4
|
Member
Registered: Aug 2003
Location: CA USA
Distribution: FC2, FC4, Mandrake 10, Slackware 10, RedHat 9, Suse 9.1, College Linux, Debian Sarge, Gentoo
Posts: 170
Rep:
|
Did you try:
find / -name atk.pc -print
If you found it
then:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/path
|
|
|
08-31-2003, 01:12 AM
|
#5
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Original Poster
Rep:
|
/usr/local/lib/pkgconfig/atk.pc.
I tried PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/atk.pc
Then I got the same errors when ./configure.
Was I correct that ':/path' was to be where I found atk?
Last edited by Scruff; 08-31-2003 at 01:16 AM.
|
|
|
08-31-2003, 01:26 AM
|
#6
|
Member
Registered: Aug 2003
Location: CA USA
Distribution: FC2, FC4, Mandrake 10, Slackware 10, RedHat 9, Suse 9.1, College Linux, Debian Sarge, Gentoo
Posts: 170
Rep:
|
I think you should use just
/usr/local/lib/pkgconfig
for the path
And, did you use 'export' like in my post?
It has to work. That's what it says in your error:
"Perhaps you should add the directory containing `atk.pc'
to the PKG_CONFIG_PATH environment variable"
When you have the same error again make sure that it asks for the same file. Sometimes I had to add other paths for some other files during ./configure process.
|
|
|
08-31-2003, 01:30 AM
|
#7
|
Member
Registered: Aug 2003
Location: CA USA
Distribution: FC2, FC4, Mandrake 10, Slackware 10, RedHat 9, Suse 9.1, College Linux, Debian Sarge, Gentoo
Posts: 170
Rep:
|
Also you might want to double check your variable:
echo $PKG_CONFIG_PATH
|
|
|
08-31-2003, 01:43 AM
|
#8
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Original Poster
Rep:
|
Wow. Thanks alot It went.
I didn't include 'export' like your post the 1st time. Would you mind explaining to me what it is I just did for future reference?
|
|
|
08-31-2003, 02:05 AM
|
#9
|
Member
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465
Rep:
|
In a root terminal do "ldconfig". Then try your ./configure again.
Last edited by Allen614; 08-31-2003 at 02:07 AM.
|
|
|
08-31-2003, 02:07 AM
|
#10
|
Member
Registered: Aug 2003
Location: CA USA
Distribution: FC2, FC4, Mandrake 10, Slackware 10, RedHat 9, Suse 9.1, College Linux, Debian Sarge, Gentoo
Posts: 170
Rep:
|
I am not sure if I can really explain that.
I found it somewhere on 'man' pages (I don't remember where anymore). It explained what the '.pc' files mean.
But anyway, when some program/command can't find something it's because the 'search path' is not specified. In this case it was PKG_CONFIG_PATH. So you had to set the search path using this variable.
You can set the path permanently in your .bash_profile by adding a line 'export blah_blah_whatever_you_need'
Also, there is another variable LD_LIBRARY_PATH that you have to setup when your compiler complains that it can't find some library. (I had this problem after I installed 'gtkmm')
|
|
|
08-31-2003, 05:07 AM
|
#11
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
a pc (pkgconfig) file gives information about where to look to heards and libraries for dependent packages.
You are aware that you can just installl this all by RPM i hope.... A normal user would need a very good reason to want to be compiling all this from source, especially on a distro like redhat where the RPM database is so integrated into the way the system runs at the highest levels.
Last edited by acid_kewpie; 08-31-2003 at 05:09 AM.
|
|
|
08-31-2003, 11:05 AM
|
#12
|
Member
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949
Original Poster
Rep:
|
I am compiling everything from source to learn more. I was building up to recompiling my kernel, which I did successfully last night
Actually, the recompiling the kernel was 10x easier than getting that damn lib installed.
Last edited by Scruff; 08-31-2003 at 11:08 AM.
|
|
|
All times are GMT -5. The time now is 04:21 AM.
|
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
|
|