LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-31-2004, 01:33 PM   #1
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
problems installing gimp-2.0.1


i'm having trouble getting the gimp to work, and i can't figure out what's wrong. i had it working before on this same system, slackware 9.1, xfree 4.4, but now something is really messed up.

when i try to configure, i get
Code:
checking for fontconfig >= 2.2.0... Requested 'fontconfig >= 2.2.0' 
but version of Fontconfig is 2.1.0

configure: error: Library requirements (fontconfig >= 2.2.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 searched for where fontconfig was, and found it in:
Code:
/usr/lib/pkgconfig/fontconfig.pc
/usr/X11R6/lib/libfontconfig.so.1
/usr/X11R6/lib/libfontconfig.a
/usr/X11R6/lib/libfontconfig.so
/usr/X11R6/lib/libfontconfig.so.1.0
/usr/X11R6/man/man3/fontconfig.3x.gz
/usr/X11R6/include/fontconfig
/usr/X11R6/include/fontconfig/fcfreetype.h
/usr/X11R6/include/fontconfig/fontconfig.h
/usr/X11R6/include/fontconfig/fcprivate.h
so i did export PKG_CONFIG_PATH=/usr/lib/pkgconfig (didn't work), then /usr/X11R6/lib and then /include, but neither of those worked, either.

so then i figured i would try to install the fontconfig-2.2, but that fails during make, saying:
Code:
/usr/share/sgml/docbook/utils-0.6/backends/man: line 6: sgmlspl: command not found
make[2]: *** [func.refs] Error 8
make[2]: Leaving directory `/home/sero/dload/libs/fontconfig-2.2.2/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sero/dload/libs/fontconfig-2.2.2'
make: *** [all] Error 2
i have no idea what that means or how to fix it. not knowing much about it, it looks more like a problem with the program itself rather than my system, unless i need some sgml development library or something? i have no idea.

when i installed gimp-2.0 last time i made a slackpack, but that failed to install giving this error:
Code:
install/doinst.sh: line 8: /var/log/packages/gimp-2.0.1-i386-1: No such file or directory
mv: cannot stat `description.tmp': No such file or directory
so i went to the /var/log/packages directory and found an i486 and an i686. i copied the i486 to an i386, and the install worked, but then it gives me a dialog box error message about fontconfig again when i try to launch it:
Code:
The Fontconfig version being used is too old!

The GIMP requires Fontconfig version 2.2.0 or later.
The Fontconfig version loaded by The GIMP is 1.0.2.

This may be caused by another instance of libfontconfig.so.1
being installed in the system, probably in /usr/X11R6/lib.
Please correct the situation or report it to someone who can.
(the "reporting to someone who can" part is where you all come in. )

a couple of other things that will probably throw up some red flags to someone is that when i install XFree 4.4 from swaret, the gimp works. but the fonts in my other programs are then massively messed up, so i have to remove it and use the X 4.4 from source. so i guess there is something too in-depth about fontconfig and X that i don't understand that is causing the problem. if i can't install the fontconfig, i'm not sure what to do, or why X from swaret works and the X from source doesn't. no real hurry because i can use the gimp on my laptop now, or even 1.2 on my desktop if i have to, but any help in sorting this out would be appreciated. gimp-1.2 really sux in comparison to 2.0. thnx.
 
Old 05-31-2004, 02:00 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Well...the problem, as I see it, is that you've installed fontconfig as part of XFree86. If you install a new version over the top of it, some things may break. From your error message it looks like it's failing building the docs. If you're feeling brave, try

./configure --prefix=/usr/X11R6 --sysconfdir=/etc --disable-docs
make
make install

This will install a fontconfig.pc file in /usr/X11R6/lib/pkgconfig so you'll need to move that into /usr/lib/pkgconfig , replacing the fontconfig.pc file that was there.
Next time you install XFree86 it might be wise to install fontconfig seperately. There are details of how to do that in Beyond Linux From Scratch
 
Old 05-31-2004, 02:57 PM   #3
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Original Poster
Rep: Reputation: 48
Quote:
Originally posted by Andrew Benton
Well...the problem, as I see it, is that you've installed fontconfig as part of XFree86. If you install a new version over the top of it, some things may break. From your error message it looks like it's failing building the docs. If you're feeling brave, try

./configure --prefix=/usr/X11R6 --sysconfdir=/etc --disable-docs
make
make install

This will install a fontconfig.pc file in /usr/X11R6/lib/pkgconfig so you'll need to move that into /usr/lib/pkgconfig , replacing the fontconfig.pc file that was there.
Next time you install XFree86 it might be wise to install fontconfig seperately. There are details of how to do that in Beyond Linux From Scratch
thanks for the fast reply. yes, i just installed XFree86 as an entire "package" from the source files, doing make World and make install from the xc directory, exactly according to the instructions on the xfree site. what i don't understand is why XFree 4.4 wouldn't use the latest fontconfig, and why the gimp wouldn't be able to use it to compile after X was already installed. ? and if i use the fontconfig that i guess gets installed with XFree86 from the slackware package, my fonts in all my other programs and xfce4 are really messed up. so i'm not sure why that is.

i'll try what you recommend, but i wonder: can i save the fontconfig.pc files and whatever else and revert back to them if installing the new one screws up my install? or could i make uninstall and then just install XFree again and be okay?

>edit: maybe i should try installing one of the binaries with the Xinstall.sh script? the xfree doc says that overwrites everything, so maybe that would clean up a lot of the mess and get things straightened out? or would that not be much different in the end from a source install, and maybe break a lot of things? aside from fixing the gimp problem, i guess i really want to understand this Xfree/fontconfig relationship, and how that all works. fontconfig is or is not a part of XFree86 that gets installed along with X?

Last edited by synaptical; 05-31-2004 at 03:12 PM.
 
  


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
Installing GIMP 2.0 on Fedora help? dirdej Linux - Software 2 05-09-2004 04:30 PM
Problems installing GIMP 2 ernesto_lelo Linux - Software 20 05-01-2004 07:57 AM
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 08:00 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
Open Source Consulting | Domain Registration