Gtk Works Fine, Except when Root
- From: "Charles Petersen" <mauddib hotmail com>
- To: gtk-list gnome org
- Subject: Gtk Works Fine, Except when Root
- Date: Wed, 11 Apr 2001 00:06:43 -0000
This one's a bit to deep for me. I finally got Glib and Gtk+ 1.2.9 all
installed using the tar.gz files. If I log in as usr, cd to the
examples/helloworld directory, and type make, it compiles perfectly fine.
The program works perfectly, everything is fine. However, if I do the same
thing, but login as root, it gives me the following error:
gcc 'gtk-config --cflags` helloworld.c -o helloworld `gtk-config --libs`
helloworld.c:3: gtk/gtk.h: No Such File or directory
make: *** [helloworld] Error 1
Even more mystifying, if I login as usr, then su to root, it compiles fine.
A few more things that may help:
The LD_LIBRARY_PATH variable is set to
"/usr/local/lib:/lib:/usr/lib:/usr/X11R6/lib"
and ld.so.conf reads:
/usr/X11R6/lib
/usr/lib
/usr/kerberos/lib
/usr/i486-linux-libc5/lib
/usr/lib/qt-2.1.0/lib
/usr/lib/qt-1.45/lib
/usr/local/programs/jdk1.2.2/lib/i386
/usr/local/lib
Finally, I am running RH 6.2 and before installing removed all previous
versions of glib and gtk+. Also, when originally installing gtk+, I had to
use the following argument to ./configure to get it to work:
./configure --with-glib-prefix=/usr/local
If any more information is needed, don't hesitate to ask.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
"I must not fear.
Fear is the mind-killer.
Fear is the little-death that brings total obliteration.
I will face my fear.
I will permit it to pass over me and through me.
And when it has gone past I will turn the inner eye to see its path.
Where the fear has gone there will be nothing.
Only I remain."
-DUNE
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d-- s: a-- c++ UL++ P+++ L++ E+(---) W++(-) N--(+) ?o ?k w+>-- M V- PS++
PE(+) Y+ PGP- t+(--) 5 X++>+++ r>++ tv b++(+++) DI++ D-- G>++ e* h! r y
------END GEEK CODE BLOCK------
charles petersen
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]