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. |
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 |
Right-o. From whence caneth myneselth locate von uninstallation instructions yonder?
|
???
what is it you are asking exactly? removing the old stuff first? removing what you have already installed? what distro is it? |
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
|
Go back to your glib directory and instead of ./configure run:
Code:
./configure --prefix=/usr |
Quote:
|
might need to make clean && make distclean first, and run ldconfig as root (that's ldconfig with an L)
|
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. |
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 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. |
..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. |