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. |
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 |
Install the gnome development libraries from the package manager
|
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 |
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). |
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 11:03 PM. |