Re: GTk/Glib 2.2 Install Problem



Thanks for the suggestions. This is what I eventually tried (unfortunately)

First I set LD_LIBRARY_PATH to /usr/local/lib and executed ldconfig

I then recompiled my test program and it now picks up the latest version of Glib.

I then built and installed ATK and GTK and repeated the above steps.

My GTK programs pick up the correct libraries and run, however I now have some new problems,

1. My X login screen no longer has any text prompts on it - only the username and password entry 2. Some apps are no longer working for example GEdit no longer runs but crashes with the following ouput

(gedit:2498): Gtk-CRITICAL **: file gtktextbuffer.c: line 334 (set_table): asser
tion `buffer->tag_table == NULL' failed

(gedit:2498): GLib-GObject-WARNING **: cannot create instance of abstract (non-i
nstantiatable) type `GtkWidget'

Does this mean that the binary libraries generated where not backwards compatable ? I don't seem to be able to go back ie by resetting LD_LIBRARY_PATH to /usr/lib and rerunning ldconfig.


Jean Bréfort wrote:

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






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]