Linux - NewbieThis 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.
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.
i want to install xchm(to read chm files),when installing xchm it requested wxwidgets while the configure program and it also requested GTK+ the same thing with GTK+(configure) showed amessage like that:
Quote:
checking for BASE_DEPENDENCIES... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
configure: error: Package requirements (glib-2.0 >= 2.11.4 atk >= 1.9.0 pango >= 1.13.0 cairo >= 1.1.8) were not met.
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively you may set the BASE_DEPENDENCIES_CFLAGS and BASE_DEPENDENCIES_LIBS environment variables
to avoid the need to call pkg-config. See the pkg-config man page for
then i installed the glib every thing was ok with the glib,so when getting back to install GTK+ i got the same error message above
i want to install xchm(to read chm files),when installing xchm it requested wxwidgets while the configure program and it also requested GTK+ the same thing with GTK+(configure) showed amessage like that:
then i installed the glib every thing was ok with the glib,so when getting back to install GTK+ i got the same error message above
pls any ideas or suugestions are welcome
many thanks
where do you have glib installed?
Run set and see if you have PKG_CONFIG_PATH
if it does not contain /usr/lib/X11R6/lib/pkgconfig
you'll want to add that in your .bash_profile, but to start you can just do
ok i did what you said,thanks,every thing was right.
now i moved to install the atk which is also requiered bt the GTK+,
while the configure program i got an error :
Quote:
*** 'pkg-config --modversion glib-2.0' returned 2.12.0, but GLIB (2.4.6)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.12.0, but GLIB (2.4.6)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
and i have the PKG_CONFIG_PATH loks like that:
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local
the problem is that when i installed glib-2.12.0 in /usr/local:
./configure --prefix=/usr/local
when i look for it in the /usr/local using either(the locate or find commands)i do not find it(glib-2.12.0)
If you come up with two glib.pc files do an ls -la on them both to see which is older(on your system)
,
I think the main problem is that you installed an older version of glib over an already existing version of glib. The thing is if you had not installed glib again and just set the pkg-config-path, everything would probably be fine now, but now we have to clean up our mess :P
Also do a set and see if you have LD_LIBRARY_PATH as we might just skip over the PKG_CONFIG_PATH on this one.
As a side note, make sure you add the PKG_CONFIG_PATH line from above to your .bash_profile, so that it is loaded everytime you restart.
for LD_LIBRARY_PATH i did not find it with the set command(please what's its goal). but i configured the /etc/ld.so.conf added the /usr/local/lib path, then moving to to pango(also needed by GTK+) so it needs the fontconfig.pc i installed it, then moved to cairo(also requested by GTK+).the pblm i had is that i tough that installing glib-2.12.0 so i should find glib-2.12.0.pc,in fact it is glib-2.0.pc
so now during the cairo configure i got message:
Quote:
checking for xlib... Package x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x11' found
checking whether cairo's Xlib backend could be enabled... no (requires X development libraries)
checking for cairo's Xlib Xrender backend...
checking whether cairo's Xlib Xrender backend could be enabled... no (requires --enable-xlib)
checking for cairo's Microsoft Windows backend...
checking whether cairo's Microsoft Windows backend could be enabled... no (requires a Win32 platform)
checking for cairo's Microsoft Windows font backend...
checking whether cairo's Microsoft Windows font backend could be enabled... no (requires a Win32 platform)
checking for cairo's PNG backend...
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG backend could be enabled... no
configure: error: requested PNG backend could not be enabled
What distro are using, out of curiousity, that you are installing all of this by hand?
I'm not going to give you a solution to this one, you have to locate the x11.pc, how have we done that so far? How have we loaded that path? See if that fixes the rest of the problems, although you will probably also have to install libpng... a never ending list of dependencies for this one.
Sanity Check, do you have xorg or Xfree86 installed?
also, you man need to install the X11 development libraries.
Is there a reason you are installing all of these the way you are. doesn't mandrake use rpm? If so, why not use rpm with dependency checking. Holy hell it would save a lot of hassle.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.