Re: Gtk Works Fine, Except when Root



On Wed, 11 Apr 2001, Charles Petersen wrote:

that is because the environment of root.
you compiled and installed under /usr/local, i think.

but the environment of root doesnt includes /usr/local/include as one of
the include search path (which, by the way, i dont know where it is)
so this will help me too. have always wanted to know.

su doesnt change the environment unless you explicity specify it with
options.

do
su -
that is "du <dash>"
and it will load roots environment.
you will get the same results, no compilation.

> 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.
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>

-- 
ICQ: 15605359 Bicho
                                  =^..^=
First, they ignore you. Then they laugh at you. Then they fight you. Then you win. Mahatma Gandhi.
........Por que no pensaran los hombres como los animales? Pink Panther........
-------------------------------気検体の一致------------------------------------
暑さ寒さも彼岸まで。
アン アン アン とっても大好き






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