LinuxQuestions.org
Review your favorite Linux distribution.
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 04-21-2004, 09:49 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 400

Rep: Reputation: 30
Smile error installing pango


hi,
I want to install the GNOME 2.6 tar ball packages,while "/configure" the pango-2.6.0 for installation this is the error message:
checking for glib -version >=2.4.0 ...no
configure error:GLIB 2.4.0 or better is required,the latest version of
GLIB is aviable from ftp://ftp.gtk.org
I have already installed the glib-2.4.0 and with 'locate glib-2.0.pc' this is the result 'usr/lib/pkgconfig/glib-2.0.pc' and run the ldconfig after it. plz help me.
 
Old 04-21-2004, 12:54 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I may be going out on a limb here but I'm guessing you didn't install glib-2.4 with
./configure --prefix=/usr
if you just used ./configure then the glib you installed will be in /usr/local . This is a good thing. If you had installed it --prefix=/usr it would have overwritten the glib-2.2 that was already installed and many of the things that are linked against it would now be broken. Like Gnome for instance. You'd be unable to continue installing Gnome-2.6 unless you drop down to the command prompt. I've installed Gnome at the command prompt many times, but I've never successfully installed it over an older version of Gnome. Oh, except for the time I built Garnome in my home folder. However, enough about me.
What you need to do is point towards the new packages you are installing. You need to rearrange you PKG_CONFIG_PATH so it points towards /usr/local/lib/pkgconfig before /usr/lib/pkgconfig
Code:
echo "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" > ~/.bashrc
should fix that. Now you need to set a couple more variables to avoid some other problems
Code:
echo "export LDFLAGS=-L/usr/local/lib" > ~/.bashrc
echo "export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH" > ~/.bashrc
That will write those variables to the hidden file .bashrc in your home folder. If you want to change or delete them open ~/.bashrc in a text editor like Gedit. I think you would be very wise to do all your compiling and installing in your home folder as then your system will be safe and you won't have to reinstall Red hat. If you do decide to play it safe, alter those variables to point to wherever you decide to install your things. Good luck.

Last edited by Andrew Benton; 04-21-2004 at 12:56 PM.
 
Old 04-21-2004, 01:12 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Quote:
Originally posted by Andrew Benton
I may be going out on a limb here but I'm guessing you didn't install glib-2.4 with
./configure --prefix=/usr
if you just used ./configure then the glib you installed will be in /usr/local . This is a good thing. If you had installed it --prefix=/usr it would have overwritten the glib-2.2 that was already installed and many of the things that are linked against it would now be broken. Like Gnome for instance..
This is the second time you've given this information and it is NOT true. Installing glib-2.4 would not overwrite glib-2.2 - the two would co-exist quite happily and no links would be broken.

In my /usr/lib directory I have the following two files:

libglib-2.0.so.0.200.3
libglib-2.0.so.0.400.0

the former is glib-2.2.3, the latter is glib-2.4.0. The only change on installing the later version is the symlink glib-2.0.so now points to the second file instead of the first.

If what you said were true then no one would ever upgrade libraries for fear of breaking links.
 
Old 04-21-2004, 02:32 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Good point, but though it may be true that you can install two versions of glib side by side, my experience of installing Gnome has been that two different versions will not coexist peacefully.
 
Old 04-21-2004, 06:13 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Quote:
Originally posted by Andrew Benton
Good point, but though it may be true that you can install two versions of glib side by side, my experience of installing Gnome has been that two different versions will not coexist peacefully.
Then you're doing something wrong - my versions co-exist happily, including gnome. I believe the advice you're giving newbies along this line is misleading - it doesn't just hold true for glib either, you can install any set of libraries side by side and they will co-exist. Like I said, if that weren't the case then no one would ever update libraries.
 
Old 04-22-2004, 09:22 PM   #6
shams
Member
 
Registered: Jan 2004
Posts: 400

Original Poster
Rep: Reputation: 30
hi,
Thanks to all help,glib-2.4.0 from tar ball was installed in /usr/
local/lib/pkgconfig and the old version from rpm was in /usr/lib/
pkgconfig,the symlink didn't work forme,so i remove the old version
from /usr/lib/pkgconfig and installed it again with the prefix of './
configure --prefix=/usr/' and then the pango-1.4.0 was successfully
installed.
 
  


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
error in the creation of `etc/pango/pango.modules` okeyla Linux - Newbie 3 07-02-2011 08:06 PM
Error while compiling pango 1.2.5 VertX Linux - Software 1 08-26-2004 03:13 PM
Pango Building Error lasindi Linux - Software 1 06-14-2004 02:35 AM
Pango 1.4.0 make error mafiaman Linux - Software 3 05-17-2004 09:45 AM
Configure error in Pango-1.0.5 suriyamohan Linux - General 0 04-12-2003 01:24 AM


All times are GMT -5. The time now is 12:45 PM.

Main Menu
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