Re: About installing GTK+ part 2



On Sun, 2003-08-10 at 02:38, Lee R wrote:

> What are the steps to fixed it? I'm new in Linus.
> Thank you very much!
> 

Essentially when you compile from source, the packages default to
installing in /usr/local.  However, pkg-config is looking in /usr.  Do
get pango so see your new glib you need to use "export
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" before you configure.

However, this whole situation is not idea because you now have two
copies of GTK+ and company on your machine.  I recommend what Owen
recommended to Nick Wilson on the list.  Go to your distro maintainer
and get the latest gtk packages from there.  Then you'll have no
conflicts and things will be happy.  For example, on Redhat 9, download
the gtk2, glib2, pango, and atk rpms from
ftp://ftp.redhat.com/pub/redhat/linux/rawhide

I quote:
"Advice:

 A) Delete all remnants of GLib out of /usr/local, so they don't
    cause you problems in the future

 B) Fetch the newest GLib, Pango, GTK+ packages from 
    ftp://ftp.redhat.com/pub/redhat/linux/rawhide or a mirror
    and install those. They should work fine on Red Hat 9.

If you were installing from source the simplest and most reliable
way to do it is to simply write over the system installation
by running ./configure --prefix=/usr --sysconfdir=/etc. 

The only real alternative is to install all the sources in a way
that is entirely isolated from the system installation; but that
takes quite a bit of experience to get going. Having a mixture
of the same libraries in /usr and /usr/local will never work 
properly.

Since packages are available that will work on your system, you
should use them. Not only is it easier, the packaging system
will know about them properly, and you get some Red Hat integration
patches that aren't in the upstream tarballs.

Regards,
                                                Owen"
-- 
Michael Torrie <torriem chem byu edu>




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