LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem while installing xchm (https://www.linuxquestions.org/questions/linux-newbie-8/problem-while-installing-xchm-476806/)

adilturbo 08-23-2006 09:30 PM

Problem while installing xchm
 
hi nice ppl

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

pls any ideas or suugestions are welcome

many thanks

debiant 08-25-2006 06:13 AM

Quote:

Originally Posted by adilturbo
hi nice ppl

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

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

more than likely that will fix the problem.

adilturbo 08-25-2006 09:49 AM

hi again

ok i did what u said(rane tha set command) but i did not find the PKG_CONFIG_PATH

so what shall i do now please?

thanks

debiant 08-25-2006 04:16 PM

Quote:

Originally Posted by adilturbo
hi again

ok i did what u said(rane tha set command) but i did not find the PKG_CONFIG_PATH

so what shall i do now please?

thanks


For the time being, type: export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig and try it again.

Then use a text editor on your .bash_profile and put the line above into it (if it works). That way it will be set from then on.

(NOTE: Make sure that X11R6 is actually in the usr directory)

adilturbo 08-26-2006 09:34 AM

hi

1st i want just to tell you that i do not have the pkgconfig directory in /usr/X11R/lib it exists in /usr/lib and /usr/local/lib so

i typed export PKG_CONFIG_PATH=/usr/lib/pkgconfig then editing the .bash_profile then ./configure for gtk+ i got the same error message

so please any solution ?

thanks in advance

adilturbo 08-28-2006 06:57 AM

hi kind ppl

please any other solutions

thanks

debiant 08-28-2006 07:46 PM

You put usr/lib in, but not usr/local/lib

find / -name glib* and see if it may be in the usr/local/lib... if so that also needs to be in your PKG_CONFIG_PATH

adilturbo 08-28-2006 08:57 PM

could you please clarify wht exactly i shall do?

thanks

debiant 08-29-2006 08:36 PM

type export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

adilturbo 08-30-2006 12:56 PM

hi again

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)

so what is the solution?

thank you so much

debiant 08-30-2006 08:36 PM

find / -name glib*.pc

as root

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.

adilturbo 08-31-2006 11:30 AM

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
so please what is the solution?

many thanks

debiant 08-31-2006 07:45 PM

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.

adilturbo 09-01-2006 08:08 AM

hi

i'm using mandrake 10.1

about x11.pc i did not find it?

so please what shall i do?

debiant 09-01-2006 11:58 PM

Quote:

Originally Posted by adilturbo
hi

i'm using mandrake 10.1

about x11.pc i did not find it?

so please what shall i do?

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.

why not do urpmi xchm


All times are GMT -5. The time now is 01:02 AM.