LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-24-2005, 10:56 PM   #1
WRSpithead
Member
 
Registered: Mar 2005
Posts: 60

Rep: Reputation: 15
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.
 
Old 03-25-2005, 02:21 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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
 
Old 03-25-2005, 12:10 PM   #3
WRSpithead
Member
 
Registered: Mar 2005
Posts: 60

Original Poster
Rep: Reputation: 15
Right-o. From whence caneth myneselth locate von uninstallation instructions yonder?
 
Old 03-25-2005, 04:12 PM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
???
what is it you are asking exactly? removing the old stuff first? removing what you have already installed?
what distro is it?
 
Old 03-25-2005, 05:46 PM   #5
WRSpithead
Member
 
Registered: Mar 2005
Posts: 60

Original Poster
Rep: Reputation: 15
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
 
Old 03-25-2005, 05:50 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 54
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.

Last edited by Komakino; 03-25-2005 at 05:52 PM.
 
Old 03-25-2005, 06:20 PM   #7
WRSpithead
Member
 
Registered: Mar 2005
Posts: 60

Original Poster
Rep: Reputation: 15
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
 
Old 03-25-2005, 06:53 PM   #8
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 54
might need to make clean && make distclean first, and run ldconfig as root (that's ldconfig with an L)
 
Old 03-25-2005, 07:57 PM   #9
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.
 
Old 03-26-2005, 01:31 PM   #10
WRSpithead
Member
 
Registered: Mar 2005
Posts: 60

Original Poster
Rep: Reputation: 15
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.
 
Old 03-26-2005, 01:57 PM   #11
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 54
..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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 12:57 PM
updating GLib..or pango...or gtk+ or etc etc nadroj Linux - Software 7 01-16-2005 02:54 AM
Installing gtk,glib, pango af_dave Linux - Software 5 07-28-2004 04:48 AM
Pb installing glib, atk, pango, gtk giill Linux - Software 8 11-23-2003 02:25 PM
Installing Glib, ATK, GTK, Pkg Config, and Pango! LinuZ Linux - Newbie 9 10-26-2003 03:58 PM


All times are GMT -5. The time now is 10:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration