LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem installing glib/pango/gtk+ (https://www.linuxquestions.org/questions/linux-software-2/problem-installing-glib-pango-gtk-305750/)

WRSpithead 03-24-2005 09:56 PM

Problem installing glib/pango/gtk+
 
I appologize for the consiseness of this post, but the very long post I just wrote (with over an hours worth of data-gathering) was deleted by the server with an excuse of "Sorry. We decided that your post had a URL in it. Since you don't have enough posts, your message will be lost. Forever. Get the hell out of here, n00b."

So, here are the basics:

I can't install gtk+ because glib v.2.6.3 is not installing properly. I installed all dependencies and the glib package itself with the normal "./config - make - make install" with absolutely no errors. When I try to install pango v.1.8.1, it says that I still have version glib v.2.2. When I checked in $PKG_CONFIG_PATH/glib-2.0.pc, sure enough, it was still reading as v.2.2. Either pkg-config (v.0.15.0) is not registering it properly, or it's installing to the wrong path, or it isn't installing at all. I don't have enough knowlege to know or to find out. Any help will be blessed with the spoo stick. Thank you.

__J 03-25-2005 01:21 AM

there are many, many, many threads of this same topic, a good starting point would be to do a search.

your problem is you are trying to install conflicting libraries to what the system came with but you are leaving the originals installed. This can work, but you have to know what you are doing, not only to get it to compile, but also at runtime ( you will get runtime linker errors).

basically,

1) remove the old libraries first

2) install the new libraries in the same place ( probably /usr), you didn't specify a distro so it's hard to be more specific, but if you have a distro that uses packages ( rpm, deb's, tgz's, etc) you'll want to make a package of your build and install that, don't do "make install" and delete the source directory if you are worried about being able to upgrade/remove the package later on.

3) make sure you are reading the directions, especially on pango :D

WRSpithead 03-25-2005 11:10 AM

Right-o. From whence caneth myneselth locate von uninstallation instructions yonder?

__J 03-25-2005 03:12 PM

???
what is it you are asking exactly? removing the old stuff first? removing what you have already installed?
what distro is it?

WRSpithead 03-25-2005 04:46 PM

I know how to uninstall what i just installed. I just go cd glib-2.6.2 and then make uninstall. I do not know how to uninstall the original glib, however. I am using SuSE 9.0

Komakino 03-25-2005 04:50 PM

Go back to your glib directory and instead of ./configure run:
Code:

./configure --prefix=/usr
Then install pango and atk then gtk. Should pango give any freetype or fontconfig errors then install the latest version of both of them (one is on version 2.99 or something and the other is 2.19 I think). Install all the libraries with the --prefix=/usr bit, otherwise they'll be put in /usr/local/lib instead of /usr/lib. /usr/lib is searched before /usr/local/lib which is why your old libraries are being detected first.

WRSpithead 03-25-2005 05:20 PM

Quote:

Originally posted by Komakino
Go back to your glib directory and instead of ./configure run:
Code:

./configure --prefix=/usr
Then install pango and atk then gtk. Should pango give any freetype or fontconfig errors then install the latest version of both of them (one is on version 2.99 or something and the other is 2.19 I think). Install all the libraries with the --prefix=/usr bit, otherwise they'll be put in /usr/local/lib instead of /usr/lib. /usr/lib is searched before /usr/local/lib which is why your old libraries are being detected first.

Umm... I don't think that worked. I did the whole "./configure --prefix=/usr" in the glib directory, but, even after I reinstalled all of glib's dependencies with the --prefix=/usr thing, pango still says I have version 2.2.3

Komakino 03-25-2005 05:53 PM

might need to make clean && make distclean first, and run ldconfig as root (that's ldconfig with an L)

__J 03-25-2005 06:57 PM

ok, first compile glib (with the --prefix=/usr), after it is successfully compiled and ready to install, go into Yast and remove the one that came with the system ( or use rpm -e <packagename> from the command line). before you run "make install" though, I suggest you go get checkinstall or another program to make an rpm for you. this will make administration of your new libs much easier ( upgrade and removal). to use checkinstall:

./configure --prefix=/usr
make
checkinstall ( instead of make install)

then install the rpm it makes.

everything else is pretty much straight forward, except for pango, MAKE SURE it list xft as a backend before compiling it ( it gives a summary at the end of configure). if not, you will need to adjust your PKG_CONFIG_PATH to accommodate this ( you don't need to install the xft package, you can use the one that came with X). post back if you need help with this.

WRSpithead 03-26-2005 12:31 PM

Ok. I finally got it to work. What I did was this:

I first uninstalled EVERYTHING I was about to upgrade through YaST. Just to be sure I got everything, I went into the $PKG_CONFIG_PATH directory and did
Code:

ls | grep glib
ls | grep pango
ls | grep atk
ls | grep gtk

I wrote all this down and, in addition to uninstalling the main glib, pango, atk, and gtk packages, I also uninstalled any of the similar things from the pkg-config directory.

Once everything was uninstalled (and YaST was flipping out from all the unresolved dependencies), I began configuring, compiling, converting into RPMs, and installing all of the packages. I didn't use YaST on this part because it was wigging out too bad. Instead I used KPackage.

Finally, after methodically doing all this, it worked out and gtk+-2.6.4 was installed at last.

Komakino 03-26-2005 12:57 PM

..and this the reason I steer well clear of any RPM based distro is crystal clear. I had none of these problems on slackware compiling from source. I have GTK+ 2.2, 2.4 and 2.6 all happily coexisting.


All times are GMT -5. The time now is 09:54 PM.