LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2003, 04:32 PM   #1
GomiCowboy
Member
 
Registered: Apr 2003
Location: US
Distribution: Gentoo 2004.1, Ubuntu Hoary (unstable-ish)
Posts: 30

Rep: Reputation: 15
PKG_CONFIG Probelm


Hi,
I'm having trouble installing glChess. I'm running RedHat 9, Gnome 2.2, and I've installed GTK+-2.2.1 and I want to install gtkglext. But everytime I try to install it, I get the following error:

checking for gtk+-2.0 >= 2.0.0 gdk-2.0 >= 2.0.0 pango >= 1.0.0 gmodule-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: Library requirements (gtk+-2.0 >= 2.0.0 gdk-2.0 >= 2.0.0 pango >= 1.0.0 gmodule-2.0 >= 2.0.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

I've installed pkgconfig-0.14.0 with both "./configure" and "./configure --prefix=/usr/bin" and as you can see above, I still get the same error. Any suggestions? Do I need to set the PKG_CONFIG_PATH? Shouldn't GTK+-2.2.1 install in a dir that is already recognized? Thanks. --jeremy.
 
Old 04-27-2003, 06:13 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
PKG_CONFIG_PATH

These two commands can help you debug you PKG_CONFIG_PATH problem.

You can find out what your PKG_CONFIG_PATH is set to with the following command:

echo $PKG_CONFIG_PATH

Then if all else fails you can set PKG_CONFIG_PATH with the following command:

export PKG_CONFIG_PATH=/where/it/should/really/be
 
Old 04-28-2003, 09:59 AM   #3
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
Install the gnome development libraries from the package manager
 
Old 04-29-2003, 09:29 PM   #4
GomiCowboy
Member
 
Registered: Apr 2003
Location: US
Distribution: Gentoo 2004.1, Ubuntu Hoary (unstable-ish)
Posts: 30

Original Poster
Rep: Reputation: 15
All I get from echo $PKG_CONFIG_PATH is a blank line:
"
$echo PKG_CONIG_PATH

$
"
That's it. And I have installed the gnome development libraries from the RPM packages that came with Redhat 9, so they should be the newest anyway. I'll try the export PKG_CONFIG_PATH, but I'm not sure that's going to work since (and I'm assuming here) I've installed gtkmm without problems (which required GTK+-2.0. Anyway, thanks for the help. Oh and another question, I heard somewhere that RH9 uses a modified version of Gnome, does anyone know what these modifications involved? Thanks.
---jeremy
 
Old 04-30-2003, 06:21 PM   #5
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
Are you sure you have the gnome development libs? If so, you should have some files in /usr/lib/pkgconfig

RH9 do some custom artwork on both KDE and GNOME, and alter the default desktop layout of GNOME to be more like Windows/KDE (kde can't do the gnome default, not flexible enough, but RH want them both the same so gnome has to change).
 
Old 04-30-2003, 07:14 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
PKG_CONFIG_PATH

When you do an install your distribution sets up PKG_CONFIG_PATH. I don't think that it is done by any of the development packages when they install. The last time I installed SuSE I did not install the Gnome development group of packages so SuSE did not set up PKG_CONFIG_PATH for me. Later when I installed the Gnome development packages by hand I had to set PKG_CONFIG_PATH by placing the following command in /etc/profile.local

export PKG_CONFIG_PATH=/usr/lib/pkgconfig

Since your PKG_CONFIG_PATH is blank I think that you need to do something similar depending on where your distribution places global export commands.
 
  


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 and LD_LIBRARY problems web250 Mandriva 1 06-24-2005 09:53 AM
Samba Probelm MiG_Master Linux - Networking 0 02-07-2005 01:39 AM
wusb11 probelm RockyB Linux - Wireless Networking 3 01-20-2005 02:58 AM
Probelm In Network pradi_net Linux - Networking 7 05-05-2004 04:05 AM
gnucash probelm linuxlastslonge Linux - Software 0 10-13-2002 04:07 PM


All times are GMT -5. The time now is 06:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration