Re: [gtk-list] Unidentified subject!



Rui Carlos Simoes - LEM wrote:

> how do i uninstall them if any.

> please explain the steps i must do to get gtk running properly, as if you
> were explaining it to a 2 year old boy.

Hello -

  First - You don't want to uninstall your old copies of GLIB/GTK if you're
not a very experienced Linux User.  Uninstalling them will break
programs like usernet and linuxconfig - programs that if  not
available can make basic tasks very difficult for people new to
Linux/Unix.

  Let me tell you how I installed them.  I'll probably get some
flames on this from the list - but it works for me.  So here it
is:

First my plan - I decided to put them into my home directory.  Under
my home directory (which is /home/vab/)  I created the following
directory structure in my home directory to hold glib/gtk:
/home/vab/local
/home/vab/local/lib
/home/vab/local/bin

After I made those three directories I configured GLIB.  I did this by
going to the directory that GLIB installed in and issuing the following
command:
./configure --prefix=/home/vab/local/lib --exec_prefix=/home/vab/local/bin

The configure finished and I typed:
make
then:
make install

Then I set the following environment variables in my shell:
export GLIB_CONFIG=/home/vab/local/bin/bin/glib-config
export LD_LIBRARY_PATH=/home/vab/local/bin/lib

Then I went into the directory where I untarred gtk and
issued the following commands:
make
make install

Then you can prepend the location of gtk-config and glib-config
to your path like this:
export PATH=/home/vab/local/bin/bin/:$PATH

to make sure the new ones are found first and executed rather
than the older versions.

I made a script called gtk-setup that exports the two environment
variables and prepends the location to my path.  I run it before I
want to do  development, or before I want to compile a gtk
program that  requires a newer version of gtk...   I've found this
set up to be pretty painless.   I'm running GTK/GLIB 1.2.2 on
Linux 2.2.7 - RedHat 5.2 Distribution.

Don't feel bad -  About a year ago when I first tried to upgrade
GTK, I messed up my system so bad that I just re-installed from
CD. =)  I tried uninstall the old version of GTK - then recompiling
and upgrading all the stuff that broke...  editing ld.so.conf....  then
trying to down grade back to an older version of Glib/GTK ohhhh
did I make a mess!

    - VAB
---
V. Alex Brennen  [alex@pog.ufl.edu]
Web Applications Programmer
Pediatric Oncology Group
[http://www.pog.ufl.edu/]
Statistical Office
University Of Florida
352.392.5198 x303
352.392.8162 Fax



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