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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-19-2006, 05:24 AM
|
#1
|
Member
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62
Rep:
|
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
|
|
|
01-19-2006, 06:02 AM
|
#2
|
Member
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189
Rep:
|
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
|
|
|
01-19-2006, 06:50 AM
|
#3
|
Member
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62
Original Poster
Rep:
|
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 ?
|
|
|
01-19-2006, 07:03 AM
|
#4
|
Member
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410
Rep:
|
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
|
|
|
01-19-2006, 07:33 AM
|
#5
|
Member
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62
Original Poster
Rep:
|
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.
|
|
|
01-19-2006, 08:10 AM
|
#6
|
Member
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189
Rep:
|
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.
|
|
|
01-19-2006, 08:52 AM
|
#7
|
Member
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62
Original Poster
Rep:
|
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.
|
|
|
01-19-2006, 09:53 AM
|
#8
|
Member
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189
Rep:
|
I think the file "fontconfig.pc" comes with the development library of fontconfig so try:
Code:
sudo apt-get install libfontconfig1-dev
|
|
|
01-19-2006, 11:54 AM
|
#9
|
Member
Registered: Oct 2005
Location: England (Southampton)
Distribution: Ubuntu 6.06 , Gentoo
Posts: 62
Original Poster
Rep:
|
Thanks everyone that worked thanks for your help 
|
|
|
All times are GMT -5. The time now is 09:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|