Le mer 19/05/2004 à 06:04, ramprasad a écrit :
> Hi,
> Set the path of glib2.0.pc file
>
> Hope this helps,
> Thanks
> Ramprasad
I don't think this will be enough. It is difficult to have a stable
system with two versions of the same library (as libglib-2.0). If
setting the LD_LIBRARY_PATH variable does not work, you can try to use
--rpath at link time:
LDFLAGS="--rpath /usr/local/lib" ./configure;make
I found that in the ld documentation, but never tried it.
The best solution is most probably to delete the old glib-2.0. If
updated packages exist for your distrib, try to use them. Otherwise,
you'll have to configure with the --prefix=/usr option (if you can
remove the original packages before, it is much better).
> jason healy wrote:
>
> > I'm a bit new to Linux, and am having a problem installing GTK+2.2
> > (have tried the latest 2.4 several times which has resulted in a OS
> > reinstall ).
> >
> > I have downloaded the following source packages:
> > gtk+-2.2.4.tar.gz
> > glib-2.2.3.tar.gz
> > atk-1.2.4.tar.gz
> > pkgconfig-0.14.0.tar.gz
> >
> >
> > I first built pkg-config with no problems. I then built glib as
> > directed (./configure, make and make install) and set the environment
> > variable PKG_CONFIG_PATH.
> >
> > I can then execute pkg-config --cflags --libs glib-2.0 and get the output
> >
> > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
> > -L/usr/local/lib -lglib-2.0
> >
> > I then try and install atk but this fails at the configure stage. It
> > reports
> >
> > checking for GLIB - version >= 2.0.0...
> > *** 'pkg-config --modversion glib-2.0' returned 2.2.3, but GLIB (2.0.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
> >
> > It would seem that the test application in the configure script is
> > linking against the wrong version of GLIB.
> >
> > I built and ran the following test program (cut down version of whats
> > in configure)
> >
> > #include <glib.h>
> > #include <stdio.h>
> > #include <stdlib.h>
> >
> > int
> > main ()
> > {
> > printf("%d.%d.%d\n", glib_major_version, glib_minor_version,
> > glib_micro_version);
> > return 1;
> > }
> >
> > and used ldd with the following output
> >
> > ldd test1
> > libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40021000)
> > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4008c000)
> > libm.so.6 => /lib/libm.so.6 (0x4013e000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4015f000)
> > libc.so.6 => /lib/libc.so.6 (0x40167000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> >
> > which is the old library (I checked the file date and time). WHy is it
> > linking against the old library in /usr/lib rather than /usr/local/lib
> > ? How do I remove the old version of the library ? I tried removing
> > them temporarliy, the source compiled and linked but failed to run
> > correctly as it couldn't find the library.
> > Does this mean that the program always built against the right
> > libraries but loaded the wrong ones at execution - am I misising an
> > environment variable for searching for libraries?
> >
> > Have also tried running ldconfig -n /usr/local/lib and have alseo
> > tried editing /etc/ld.so.conf with no difference?
> >
> > Any help would be appreciated.
> >
> > Thanks
> >
> > Jason
> > jason healy optusnet com au
> >
> >
> >
> >
> > _______________________________________________
> > gtk-list mailing list
> > gtk-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=