LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-04-2004, 07:15 PM   #1
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Rep: Reputation: 15
Gimp...pango....gtk....glib....uhhhhh.......


I've been trying to install all of the above for the last day or so, and I just can't make anything work.

As you know, Gimp requires GTK, GTK requires Pango, and Pango requires Glib.

So....I compiled+installed Glib 2.4.x, and it says there are no problems.
However, Pango doesn't seem to agree. Every time I try to compile and install it, I get a 'Glib 2.4.0 or higher not installed' error and it quits. There isn't anything explaining what the cause of this is in the README or INSTALL files for Pango, so I'm at a loss...

I'd really just like to install Gimp, but all this chain-of-installments stuff is driving me insane...

Help?
 
Old 06-04-2004, 07:22 PM   #2
GufyMike
Member
 
Registered: Apr 2004
Location: Los(t) Angeles
Distribution: Fedora Core2, RH9, FreeBSD, Debian, Knoppix,
Posts: 53

Rep: Reputation: 15
SImple use apt-get or yum to install it. (Which one is personal prefence but apt seems more universal) Both will resolve dependencies automatically.

apt-get install gimp or yum install gimp

Thats all you need to do to install them from a terminal.
 
Old 06-04-2004, 07:30 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
You already have older versions of these things installed in /usr. If you just run ./configure without setting --prefix=/somewhere they will install in the default location, /usr/local, so we need to set some variables to make the linker look there.
Code:
export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LDFLAGS="-L/usr/local/lib"
You'll need to reset those variables everytime you open shell as it forgets when you close it.
 
Old 06-05-2004, 12:05 AM   #4
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Original Poster
Rep: Reputation: 15
When you say 'shell' are you talking about an X Terminal / Konsole window, or are you talking about the CTRL-ALT-F2 command line?

Mike--
Where/what is apt-get? Is it safe to use?

Last edited by TheMusicGuy; 06-05-2004 at 12:11 AM.
 
Old 06-05-2004, 12:59 AM   #5
GufyMike
Member
 
Registered: Apr 2004
Location: Los(t) Angeles
Distribution: Fedora Core2, RH9, FreeBSD, Debian, Knoppix,
Posts: 53

Rep: Reputation: 15
OK I can help with both. First the Shell is CLI so both runlevel 3 (ctrl + alt +F1) and Konsule, xterm are correct. Konsule/Xterm is your best an eaiest way.

As for apt-get yes it is safe and easy to use. here is a link to the RPM for FC2

http://ftp.freshrpms.net/pub/freshrp...c2.fr.i386.rpm

homepage for apt:
http://apt.freshrpms.net/
 
Old 06-05-2004, 06:00 PM   #6
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Original Poster
Rep: Reputation: 15
It doesn't look like there's a version for SuSE...

Anyway, I think I found the root of the problem...

The pango config is NOT lying. I checked, and nothing of Glib-2.4.x is installed anywhere. So...something is wrong with the Glib config then?
It says that it will install Glib-2.4.x in /usr/local/lib and /usr/local/bin, but there isn't anything that says Glib 2.4 in there after make & make install.

Last edited by TheMusicGuy; 06-05-2004 at 06:40 PM.
 
Old 06-06-2004, 08:08 AM   #7
dineshjk
Member
 
Registered: Apr 2004
Location: India
Distribution: Red Hat
Posts: 36

Rep: Reputation: 15
I am facing the same problem with Glib. Note that Glib requires pk-config and this in turns requires Glib 1.2 or some such number. Pango also reports that it does not find makefile when we issue the command make or make install.

If anybody has the solution please email me

Dinesh

Last edited by dineshjk; 06-06-2004 at 08:12 AM.
 
Old 06-06-2004, 01:57 PM   #8
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Get a grip. Pango reports that it does not find makefile when you issue the command make or make install if ./configure fails. You can't ignore error messages or you'll get nowhere. Error messages are there to help you. They're a chance to learn something you need to know.
 
Old 06-06-2004, 02:01 PM   #9
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally posted by TheMusicGuy
It says that it will install Glib-2.4.x in /usr/local/lib and /usr/local/bin, but there isn't anything that says Glib 2.4 in there after make & make install.
Did you run make install as root? It should install about half a dozen things in /usr/local/lib with libglib-2.0 in their names.
 
Old 06-06-2004, 04:55 PM   #10
oldyas
Member
 
Registered: Jun 2004
Location: Bristol, UK
Distribution: SuSe
Posts: 53

Rep: Reputation: 15
Why not use SuSe 9.0's Gnome rpms for the latest versions?

Also, I've found SuSe's YaST2 to be excellent at handling dependencies (use "Install and remove software" or "Online update").

However, when compiling Gimp 2, I had to add things to PKG_CONFIG_PATH env. variable to get things working.

Last edited by oldyas; 06-06-2004 at 06:18 PM.
 
Old 06-07-2004, 01:14 AM   #11
TheMusicGuy
Member
 
Registered: Mar 2004
Distribution: Ubuntu 8.04
Posts: 127

Original Poster
Rep: Reputation: 15
I hate to be a party pooper, but...

Quote:
Originally posted by Andrew Benton
Did you run make install as root? It should install about half a dozen things in /usr/local/lib with libglib-2.0 in their names.
1.) There's 2 .so files with that description, and a folder called glib-2.0, but there's nothing in it except another empty folder called Include. (And I did check for hidden files)
But why would version 2.4.2 install anything called 2.0?

2.) Yes, I've tried everything as root.

3.) YaST2's online update: already tried it. The only items it offers to install have nothing to do with any of this...

4.) That link has only version 2.2 of glib. Pango/Gimp requires 2.4 or above.
 
Old 06-07-2004, 03:01 AM   #12
aaronruss
Member
 
Registered: Mar 2004
Posts: 90

Rep: Reputation: 15
Quote from above

"So....I compiled+installed Glib 2.4.x, and it says there are no problems.
However, Pango doesn't seem to agree. Every time I try to compile and install it, I get a 'Glib 2.4.0 or higher not installed' error and it quits"

I had a issue where I had installed a dependence package the dependencies package installed fine but when I went back to install the original software that required that package it sead it was not there. Here is the posts that solved my issue

http://www.linuxquestions.org/questi...hreadid=189532
 
Old 06-07-2004, 04:28 PM   #13
oldyas
Member
 
Registered: Jun 2004
Location: Bristol, UK
Distribution: SuSe
Posts: 53

Rep: Reputation: 15
>> online update: already tried it. The only items it offers to install have nothing to do with any of this...

YOU (YaST Online Update) only offers to update packages that are already installed.

To install new software you need to run YaST2 and select "Install and Remove Software", and then use the search, package groups or selections filter to find the files you want. You may have to use "Change source of intillation" first, however.

I successfully compiled Gimp 2 with only the library packages that I got from YaST.
 
Old 06-19-2004, 12:10 PM   #14
ripat
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.2
Posts: 22

Rep: Reputation: 15
I have the same problem building pango. My goal is to compile gimp2, and right now I'm working on getting gtk+-2.4.3 to compile.

I have followed the instructions on the gtk page:

"First make sure that you have the necessary external dependencies installed: pkg-config, GNU make, the JPEG, PNG, and TIFF libraries, FreeType, and, if necessary, libiconv and libintl."

I had to compile pkg-config and freetype but this was no problem.

Next step:

"Then build and install the GTK+ libraries in the order: GLib, Pango, ATK, then GTK+. "

GLib (glib-2.4.2) was no problem, I did ./configure, make, checkinstall + rpm -i on the resulting rpm. I have checked that things were installed in /usr/local/lib just as they were supposed to:

# ls /usr/local/lib/*glib*
/usr/local/lib/libglib-2.0.la *
/usr/local/lib/libglib-2.0.so.0@
/usr/local/lib/libglib-2.0.so.0.400.2*
/usr/local/lib/glib-2.0

# ls /usr/local/lib/libg*
/usr/local/lib/libglib-2.0.la*
/usr/local/lib/libgmodule-2.0.so.0@
/usr/local/lib/libgobject-2.0.so.0.400.2*
/usr/local/lib/libglib-2.0.so.0@
/usr/local/lib/libgmodule-2.0.so.0.400.2*
/usr/local/lib/libgthread-2.0.la*
/usr/local/lib/libglib-2.0.so.0.400.2*
/usr/local/lib/libgobject-2.0.la*
/usr/local/lib/libgthread-2.0.so.0@
/usr/local/lib/libgmodule-2.0.la*
/usr/local/lib/libgobject-2.0.so.0@
/usr/local/lib/libgthread-2.0.so.0.400.2*


So as far as I can see the installation of glib seems ok. Then I did ldconfig (I don't know if this is necessary) and my /etc/ld.so.conf contain "/usr/local/lib" as the first line.

So now I try to compile pango, but get stuck on ./configure:

checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GLIB - version >= 2.4.0...
*** 'pkg-config --modversion glib-2.0' returned 2.4.2, but GLIB (2.2.3)
*** was found! If pkg-config was correct, then it is best
...

I have tried what Andrew Benton suggested above:
export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LDFLAGS="-L/usr/local/lib"

I even changed $LD_LIBRARY_PATH to contain only "/usr/local/lib", but that didn't help.

# echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/

# echo $LD_LIBRARY_PATH
/usr/local/lib

# echo $LDFLAGS
-L/usr/local/lib


The contents of "/usr/local/lib/pkgconfig/" is

# ls /usr/local/lib/pkgconfig/
freetype2.pc glib-2.0.pc gmodule-2.0.pc gobject-2.0.pc gthread-2.0.pc

and to me that doesn't seem like the problem. After all pkg-config reports that I have glib-2.4.2 which is correct.


So the question is why can't the configure for pango find the right glib!?

Does anyone have any ideas about what might be wrong here?

Some general info: Running mandrake 9.2 on pentium III. (No, I'm not interested in upgrading to mdk 10 right now even though it would solve this problem, and there doesn't seem to be any precompiled versions of this stuff for mdk 9.2.)

*Many* thanks in advance!!!
 
Old 06-19-2004, 05:14 PM   #15
NKOTB
LQ Newbie
 
Registered: Jun 2004
Location: london
Posts: 6

Rep: Reputation: 0
run
ldconfig /usr/local/lib
and then try again

hope it helps
 
  


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
Problem installing glib/pango/gtk+ WRSpithead Linux - Software 10 03-26-2005 01: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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration