LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-13-2004, 07:10 PM   #1
ernesto_lelo
Member
 
Registered: Oct 2003
Posts: 49

Rep: Reputation: 15
Problems installing GIMP 2


Ok. I'm trying to upgrade to Gimp 2. I'm using Red Hat 9.
I downloaded gimp-2.0.0.tar.gz
There are some dependencies:

1. You need to have installed a recent version of pkg-config available
from http://www.freedesktop.org/software/pkgconfig/.

I downloaded pkgconfig-0.15.0.
Installed (./configure make make install)

Everything great so far.


2. You need to have installed GTK+ version 2.2.2 or better. Do not
try to use an older GTK+ version (1.2.x), it will not work.
GTK+-2.2 itself needs recent versions of GLib, Pango and ATK.
Sources for these can be grabbed from ftp://ftp.gtk.org/.
GTK+-2.x and friends can be installed side by side with GTK+-1.2.

I downloaded:

ATK-1.6.0
GLIB-2.4.0
GTK+-2.4.0
PANGO-1.4.0

and the problem begin

I Installed ATK (./configure) but there is a problem. Apparently the Glib versionis too old.

So I installed the glib (./configure make make install)

Seems like the installation went just fine.

I tried once more withe ATK and the same error.

So I copied the Glib folder into the pkgconfig-0.15.0 folder and installed again (I noticed that there is an old glib version here 1.2.0).

ATK gave me the same error again.

So I modified the ./bashrc and added the following line

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/X11R6/lib/pkgconfig

Now the ATK worked (apparently)

So I tryed with the Pango and this are the last lines on the terminal after running ./configure

checking for GLIB - version >= 2.4.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** Glib 2.4.0 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.

What am I doing wrong?
 
Old 04-13-2004, 07:54 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If you installed glib with ./configure, make,make install, then it will have installed itself in /usr/local so try setting
export LDFLAGS="-L/usr/local/lib"
before you compile pango, and if that doesn't work try
export LD_LIBRARY_PATH=/usr/local/lib
as well. Good luck.
 
Old 04-13-2004, 09:17 PM   #3
ernesto_lelo
Member
 
Registered: Oct 2003
Posts: 49

Original Poster
Rep: Reputation: 15
No, unfortunately it didn't work.
When installing the pango I'm getting the same error. Seems like the glib that is been recognize for the pango or the pkg-config is the 1.2 and not the 2.0.
 
Old 04-13-2004, 09:26 PM   #4
ernesto_lelo
Member
 
Registered: Oct 2003
Posts: 49

Original Poster
Rep: Reputation: 15
I tried also this (off course it didn't work either)

change to etc
edit ld.so.conf
add line
/usr/local/lib
before
/usr/lib

and run
ldconfig -v



is there something I have to change so the Pango and the pkg-config recognize the Glib 2.0 instead of the 1.2?

when entering this instruction

pkg-config --modversion glib

this is the response:

1.2.10

More ideas?
 
Old 04-14-2004, 12:23 AM   #5
jonnycarlos
LQ Newbie
 
Registered: Sep 2003
Distribution: Fedora Core 1
Posts: 24

Rep: Reputation: 15
I was doing the same thing, and found using RPMs is much better, cause everything gets put in the right place...

This link (http://www.xach.com/gimp/rpms/) i think will have what you are looking for
 
Old 04-14-2004, 04:35 AM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally posted by ernesto_lelo
No, unfortunately it didn't work.
When installing the pango I'm getting the same error. Seems like the glib that is been recognize for the pango or the pkg-config is the 1.2 and not the 2.0.
Try rearranging your PKG_CONFIG_PATH, change
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
to
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
so that it searches /usr/local/lib/pkgconfig before /usr/lib/pkgconfig
 
Old 04-14-2004, 05:45 AM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Start again, but this time when you configure, add the switch --prefix:
Code:
./configure --prefix=/usr
 
Old 04-14-2004, 06:38 AM   #8
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
But that would install glib-2.4.0 over the glib-2.2 that's already there. Things (like Gnome) that're linked against glib-2.2 will break and he'll end up having to reinstall Red Hat.
 
Old 04-14-2004, 12:30 PM   #9
ernesto_lelo
Member
 
Registered: Oct 2003
Posts: 49

Original Poster
Rep: Reputation: 15
that sounds about right, but I don't know if I did it corect the first time I edit the .bashrc
this is what it looks like:

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'


export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig

if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi


Does anybody know if that is correct?

Thanks again for all the help...
 
Old 04-14-2004, 01:07 PM   #10
ernesto_lelo
Member
 
Registered: Oct 2003
Posts: 49

Original Poster
Rep: Reputation: 15
Sorry, my bad..
I read everything again and added an extra line to the .bashrc. Now it looks like this

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

export LD_LIBRARY_PATH=/usr/local/lib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig

if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi



and the pango istallation was just great....
No problems detected.

Now the problem came when installing the GTK+-2.4.0
I installed the jpegsrc.v6b.tar.gz and the tiff-v3.6.1.tar.gz and everything fine.
after that I started installing the GTK
./configure

and this is the result:

configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

I feel like I'm going in circles here. Sorry to bother so much, obviously a newbie...
 
Old 04-14-2004, 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: 55
Quote:
Originally posted by Andrew Benton
But that would install glib-2.4.0 over the glib-2.2 that's already there. Things (like Gnome) that're linked against glib-2.2 will break and he'll end up having to reinstall Red Hat.
That's not true at all. glib 2.2 will still be there in the form of glib.2.2.so or however they do the numbering, only gbli.2.4.so will also exist and the symlink glib.so will point to the newer version.

If upgrading a package meant having to recompile everything to link to the new package, nobody would upgrade anything.
 
Old 04-14-2004, 02:33 PM   #12
ernesto_lelo
Member
 
Registered: Oct 2003
Posts: 49

Original Poster
Rep: Reputation: 15
is that the only solution?
I did got to install everything (apparently ok), but the GTK is nor recognizing them when installing..
 
Old 04-14-2004, 03:19 PM   #13
ernesto_lelo
Member
 
Registered: Oct 2003
Posts: 49

Original Poster
Rep: Reputation: 15
I tried with ldconfig -v (I was told that using this command could help with my problem).
Still, GTK is not recognizing where ATK, Pa,go and Glib are installed...
 
Old 04-14-2004, 06:06 PM   #14
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by ernesto_lelo
I tried with ldconfig -v (I was told that using this command could help with my problem).
Still, GTK is not recognizing where ATK, Pa,go and Glib are installed...
Where are they installed? Have you tried the --prefix=/usr thing that I suggested earlier? That was the only way I could get my gimp 2 to work.
 
Old 04-24-2004, 12:39 PM   #15
BeerMonster
LQ Newbie
 
Registered: Aug 2003
Location: Shropshire, UK
Posts: 19

Rep: Reputation: 0
gimp install

./configure --prefix=/usr used to complile ALL the libraries worked for me, thanks for that tip, guys!
I had the same problems installing Gimp (or rather the libs it depends on) on my old Suse box and my new Mandrake box. That the gimp "INSTALL" file does not make this absolutely clear, is, to my mind, unforgivable! How the hell is Linux going to be a good desktop with nightmares like this, I've wasted so much time trying to install a damned graphics package on Linux. I detest Microsoft and its products and boycott them, but issues like this install difficulty mean that I would hesitate to recommend Linux to a newbie.
 
  


Reply



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
Having problems installing gimp KETrel Mandriva 0 09-05-2004 08:04 PM
Installing GIMP AznX Linux - Software 4 08-19-2004 12:41 PM
problems installing gimp-2.0.1 synaptical Linux - Software 2 05-31-2004 02:57 PM
Installing GIMP 2.0 on Fedora help? dirdej Linux - Software 2 05-09-2004 04:30 PM
gimp (1.3.21) and gimp-perl - need help installing gimp-perl keex Slackware 0 10-22-2003 03:54 PM

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

All times are GMT -5. The time now is 01:40 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
Open Source Consulting | Domain Registration