LinuxQuestions.org
Review your favorite Linux distribution.
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 03-31-2005, 08:48 PM   #1
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 339

Rep: Reputation: 32
after compiling GTK


hi all.........I recently compiled GTK on my system and everyting went fine but when i try to compile GTK apps like Xchat or GAim.........the configure file cant find GTK..........
no previous version of GTK was on this system..........and I installed with --preffix=/usr
I ran ldconfig -v as root and tried : export PKG_CONFIG_PATH=/usr/lib/pkgconfig both as root and underpriveleged user.........echo $PKG_CONFIG_PATH gives me /usr/lib/pkgconfig but if i log off the system and back on echo $PKG_CONFIG_PATH gives me a blank line.(I want the change to be permanent so I dont have to keep entering the pkg_config_path)...........any thing im missing?, or forgetting? my /etc/ld.so.config file has /usr/X11R6/lib
/usr/local/lib
/usr/lib

Im sure its something simple im forgetting...........Ive searched everywhere and all I can find Is what ive already done.........
thanks in advance

Last edited by deepsix; 03-31-2005 at 08:49 PM.
 
Old 03-31-2005, 10:13 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
pkg-config only knows one path on it's own and that is the ./lib/pkgconfig that corespongs to it's prefix
everything else you add
there are some very sophisticated ways to set stuff like this up like having the system automatically search for stuff at boot but the esiest is to

just put it in ~/.bash_profile

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/local/lib/pkgconfig

and whatever else you need in there

if you change .bash_profile rather than log out and back in again to make the changes take effect just type
source ~/.bash_profile
if you need it when you do "su" just put a line in ~/.bash_profile
if [ `whoami` = "root" ]; then
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig:/usr/local/lib/pkgconfig
fi

and if you need it if you login as root of course put it in /root/.bash_profile
 
Old 04-02-2005, 07:12 PM   #3
deepsix
Member
 
Registered: Apr 2003
Distribution: ANY
Posts: 339

Original Poster
Rep: Reputation: 32
theres always more than one way to skin a cat........thanks for the info ..........it helped alot........
 
  


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
compiling gtk? @ngelot Linux - Software 1 11-14-2005 10:20 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
compiling gtk LinFreak! Slackware 6 07-19-2003 07:48 PM
Compiling GTK+ 2.2.1 Ju Deddo Koinu Linux - Software 4 04-29-2003 12:41 AM
Compiling GTK+ 2.0.9 Dexter750 Linux - Software 10 04-28-2003 08:28 PM

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

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