LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-18-2004, 12:32 PM   #1
Kiwi UK
LQ Newbie
 
Registered: Dec 2004
Location: UK
Posts: 5

Rep: Reputation: 0
Pkg_config_path


Hi, i'm, very new to Linux and was wondering how you add a directory to PKG_CONFIG_PATH variable. Also, what is the default PKG_CONFIG_VARIABLE, as I accidentally changed it somehow
Thanks for any help you can give
Kiwi UK

SUSE 9.1 Pro / KDE 3.3.2
 
Old 12-18-2004, 12:51 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Issue
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig/
at the prompt or in your bash startups. Where it is may vary - just look for some .pc files.

-- Oh, hey - and welcome to LQ!

Last edited by slakmagik; 12-18-2004 at 12:52 PM.
 
Old 12-18-2004, 12:59 PM   #3
Kiwi UK
LQ Newbie
 
Registered: Dec 2004
Location: UK
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks digiot
Still have one problem though, when I run ./config, i receive this message:

checking for pkg-config... ok
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.4.0 gthread-2.0 >= 0.14.0 glib-2.0 > 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
configure: error: ***
See `config.log' for more details.


Any ideas?
 
Old 12-18-2004, 01:24 PM   #4
Cerulean
LQ Newbie
 
Registered: Dec 2004
Distribution: SuSE 9.1
Posts: 28

Rep: Reputation: 15
Did you actually find the location of gtk+-2.0.pc and append the directory it is in to the $PKG_CONFIG_PATH variable?
Code:
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/path/to/directory

Last edited by Cerulean; 12-18-2004 at 01:25 PM.
 
Old 12-18-2004, 01:32 PM   #5
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Kiwi UK, did you happend to compile and install KDE 3.3.2 using konstruct? I ran into the exact same problem after I installed KDE 3.3.2 that way. It seems that when PKG_CONFIG_PATH is not defined, the system will first look for the lib directory under the paths defined in LD_LIBRARY_PATH. In my case, ./configure only found /home/daihard/kde3.3.2/lib/pkgconfig as the valid PKG_CONFIG_PATH and therefore gave me that GTK error.

What I did was add the following line in my startkde:
Code:
export PKG_CONFIG_PATH=${KDEDIR}/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
It solved my problem.

HTH,
Dai
 
Old 12-18-2004, 01:36 PM   #6
Kiwi UK
LQ Newbie
 
Registered: Dec 2004
Location: UK
Posts: 5

Original Poster
Rep: Reputation: 0
Yeah that seems to work somehow, thanks everyone
 
  


Reply



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
Pkg_config_path rlnd Linux - Software 15 03-06-2009 02:26 PM
PKG_CONFIG_PATH and other questions pbibb1657 Mandriva 2 11-23-2004 03:58 PM
Pkg_config_path box_l Mandriva 3 08-03-2004 04:53 AM
pkg_config_path export MultiMike Linux - Newbie 3 10-16-2003 01:40 AM
Pkg_config_path kilgore_trout Linux - Software 0 09-08-2003 12:18 PM

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

All times are GMT -5. The time now is 07:27 PM.

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