$ tar xvfz gtk+-1.2.7.tar.gz $ cd gtk+-1.2.7 $ ./configure --with-x (snip) hecking for GLIB - version >= 1.2.7... no *** Could not run GLIB test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding GLIB or finding the wrong *** version of GLIB. If it is not finding GLIB, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if that *** is required on your system *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH *** *** If you have a RedHat 5.0 system, you should remove the GTK package that *** came with the system with the command *** *** rpm --erase --nodeps gtk gtk-devel configure: error: *** GLIB 1.2.7 or better is required. The latest version of GLIB *** is always available from ftp://ftp.gtk.org/. |
$ su # ldconfig # exit $ ./configure --with-x (snip) checking for GLIB - version >= 1.2.7... yes (snip) checking need -DX_LOCALE... no (snip) |
$ ./configure --with-x --with-locale=X_LOCALE (snip) checking need -DX_LOCALE... yes (snip) |
$ make $ cd gtk $ ./testgtk $ su # make install # exit |
$ tar xvfz gtk+-1.2.7.tar.gz $ cd gtk+-1.2.7 $ ./configure --with-x --with-locale=X_LOCALE $ make (snip) (cd .libs && rm -f libgtk.la && ln -s ../libgtk.la libgtk.la) gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_DISABLE_COMPAT_H -DGTK_EXE_PREFIX=\"/usr/local\" -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\" -DGTK_LOCALEDIR=\"/usr/local/lib/locale\" -I.. -DGTK_NO_CHECK_CASTS -DUSE_XIM -DX_LOCALE -I/usr/local/lib/glib/include -I/usr/local/include -D_REENTRANT -I/usr/openwin/include -g -O2 -Wall -c testgtk.c /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o testgtk testgtk.o libgtk.la ../gdk/libgdk.la -L/usr/openwin/lib -R/usr/openwin/lib -lXext -lX11 -lsocket -lnsl -lw -L/usr/local/lib -lgmodule -lglib -ldl -lm -lintl gcc -g -O2 -Wall -o .libs/testgtk testgtk.o .libs/libgtk.so -L/usr/local/lib -lgmodule -lglib -ldl -L/usr/openwin/lib -lXext -lX11 -lsocket -lnsl -lm -lintl ../gdk/.libs/libgdk.so -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm -lintl -L/usr/openwin/lib -lXext -lX11 -lsocket -lnsl -lw -L/usr/local/lib -lgmodule -lglib -ldl -lm -lintl -R/usr/local/lib -R/usr/openwin/lib Undefined first referenced symbol in file _Xsetlocale .libs/libgtk.so ld: fatal: Symbol referencing errors. No output written to .libs/testgtk make[2]: *** [testgtk] Error 1 make[2]: Leaving directory `/home1/local/src/gtk+-1.2.7/gtk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home1/local/src/gtk+-1.2.7' make: *** [all-recursive-am] Error 2 |
$ make distclean $ ./configure --with-x $ make $ su # make install # exit |