LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-06-2009, 10:43 PM   #1
koumodaki
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
PKG_CONFIG_PATH issue


I have a strange problem here. I had configured and exported PKG_CONFIG_PATH on my pc and I am using `pkg-config --cflags --libs gtk+-2.0` for compiling my code.
Everything worked fine untill I had to add libgnomecanvas path to the existing PKG_CONFIG_PATH. So I decided to check the original PKG_CONFIG_PATH [a sanity check] before I modify it. But I cannot find the existing PKG_CONFIG_PATH in env & echo $PKG_CONFIG_PATH returns NULL. But strangely the code compiles
So where is the PKG_CONFIG_PATH I had set?
 
Old 01-07-2009, 01:21 AM   #2
geek745
Member
 
Registered: Jul 2004
Location: Alton, IL
Distribution: Linux Mint; Slackware; Ubuntu; Slax
Posts: 172
Blog Entries: 2

Rep: Reputation: 34
unless you had set your PKG_CONFIG_PATH to be reset by a startup script, you lose it any time you log out (along with all of your environment variables). You have to add it to a script (like ~/.cshrc or ~/.bashrc or ~/.bash_profile or ~/.profile - see documentation on the shell you are using and test it well) that is run when you startup for it to be in effect in your next session.

Also, you need to be sure to export any variables you set, which you mentioned already so I think you're ok in that regard.
 
  


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
Pkg_config_path rlnd Linux - Software 15 03-06-2009 02:26 PM
Pkg_config_path Froboi Slackware 5 04-24-2006 10:59 PM
Pkg_config_path Kiwi UK Linux - Software 5 12-18-2004 01:36 PM
Pkg_config_path box_l Mandriva 3 08-03-2004 04:53 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 01:06 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