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 |
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.
|
|
04-27-2003, 03:32 PM
|
#1
|
Member
Registered: Apr 2003
Location: US
Distribution: Gentoo 2004.1, Ubuntu Hoary (unstable-ish)
Posts: 30
Rep:
|
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.
|
|
|
04-27-2003, 05:13 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,354
|
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
|
|
|
04-28-2003, 08:59 AM
|
#3
|
LQ Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565
Rep:
|
Install the gnome development libraries from the package manager
|
|
|
04-29-2003, 08:29 PM
|
#4
|
Member
Registered: Apr 2003
Location: US
Distribution: Gentoo 2004.1, Ubuntu Hoary (unstable-ish)
Posts: 30
Original Poster
Rep:
|
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
|
|
|
04-30-2003, 05:21 PM
|
#5
|
LQ Guru
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565
Rep:
|
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).
|
|
|
04-30-2003, 06:14 PM
|
#6
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,354
|
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.
|
|
|
All times are GMT -5. The time now is 03:10 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
|
|