LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2006, 05:24 AM   #1
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Rep: Reputation: 15
compiling problem


Hi im trying to compile fontconfig on my system but with out much luck i keep getting the following error
Code:
checking pkg-config is at least version 0.9.0... yes
checking for LIBXML2... configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:

Requested 'libxml-2.0 >= 2.6' but version of libXML is 2.5.0

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

chris@home2-linux:~/Desktop/fontconfig-2.3.93$
now ive tried updateing libxml and the same thing happens what should i do ive looked into changeing my enviroment varibles but i dont have the slightest clue how to do this could do with some help thanks
 
Old 01-19-2006, 06:02 AM   #2
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
You have the wrong version of libxml2. The current version in Ubuntu's breezy-repository is 2.6.21 and should do. So:
Code:
sudo apt-get install libxml2
 
Old 01-19-2006, 06:50 AM   #3
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
ok i done that and it says i have already have the newest version
Code:
chris@home2-linux:~$ sudo apt-get install libxml2
Reading package lists... Done
Building dependency tree... Done
libxml2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
chris@home2-linux:~$
any other ideas ?
 
Old 01-19-2006, 07:03 AM   #4
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Two ideas.

First:
sudo apt-get install fontconfig

Second:
Maybe you are using only the local repository, or you have forgotten to update the package meta-data.

1) Check that you are using the right repositories (you can use symaptic for that).
2) sudo apt-get update
3) sudo apt-get install libxml2
 
Old 01-19-2006, 07:33 AM   #5
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
hi thanks but still no luck according to synaptic i already have libxml2-2.6.21-ubuntu1 installed and although sudo apt-get install fontconfig works it doesnt not solve my problem beacuse the reason i want fontconfig is so that openbox will compile for some reason when i install it by apt-get it has loads of probems and ive solved this by compileing it in the past. this is the error i get when i try to compile openbox
Code:
checking for xft... Package fontconfig was not found
in the pkg-config search path. Perhaps you should add the directory
containing `fontconfig.pc' to the PKG_CONFIG_PATH environment 
variable Package 'fontconfig', required by 'Xft', not found
configure: error: Library requirements (xft) not met; consider 
adjusting the PKG_CONFIG_PATH environment variable if your libraries 
are in a nonstandard prefix so pkg-config can find them.
 
Old 01-19-2006, 08:10 AM   #6
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
Maybe this is bold, but did you try what your computer told you to do? -Often it is as simple as that ;-)
Quote:
Perhaps you should add the directory containing `fontconfig.pc' to the PKG_CONFIG_PATH environment variable
So figure out where your 'fontconfig.pc' is:
Code:
find / -name fontconfig.pc 2> /dev/null
and then add the found path to the specified env-var:
Code:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/here/the/path/to/fontconfig.pc

Last edited by Flesym; 01-19-2006 at 08:20 AM.
 
Old 01-19-2006, 08:52 AM   #7
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
thanks but unfortunately
Code:
find / -name fontconfig.pc 2> /dev/null
doesnt actuley find anything

Last edited by manicman; 01-19-2006 at 09:17 AM.
 
Old 01-19-2006, 09:53 AM   #8
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
I think the file "fontconfig.pc" comes with the development library of fontconfig so try:
Code:
sudo apt-get install libfontconfig1-dev
 
Old 01-19-2006, 11:54 AM   #9
manicman
Member
 
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62

Original Poster
Rep: Reputation: 15
Thanks everyone that worked thanks for your help
 
  


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
Problem while compiling shinni Programming 1 02-08-2005 12:13 AM
Problem compiling javakid Programming 8 12-16-2004 12:03 AM
Compiling Problem BACTRATE Mandriva 1 03-12-2004 04:36 AM
Compiling problem.... pyrocrickett Linux - Software 2 09-11-2003 02:19 PM
Compiling 2.4.20 problem frankietomatoes Linux - General 1 01-09-2003 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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