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 |
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
04-11-2004, 08:07 PM
|
#1
|
|
Member
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85
Rep:
|
PHP 5 cannot find xml2-config for libxml2 support
I'm a newbie trying to install PHP 5. I used apt to install libxml2, but when I try to configure PHP, it returns the following error...
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.
When I run locate libxml2, I can see the following...
/var/cache/apt/archives/libxml2-dev_2.4.19-4woody1_i386.deb
/var/cache/apt/archives/libxml2_2.4.19-4woody1_i386.deb
/var/lib/dpkg/info/libxml2.list
/var/lib/dpkg/info/libxml2.postrm
|
|
|
|
04-12-2004, 03:32 PM
|
#2
|
|
Member
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85
Original Poster
Rep:
|
If anyone else has the same problem, you can download a libxml2 from gnome.org, then just extract it as normal and reconfigure php...
ftp://ftp.ussg.iu.edu/pub/gnome/sources/libxml2/
More mirrors - http://ftp.gnome.org/pub/GNOME/MIRRORS.html
tar -zxvf libxml2-x.x.x.tar.gz
cd libxml2-x.x.x
./configure
make
make install
cd php-x.x.x
./configure (--help)
|
|
|
|
04-27-2004, 10:55 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2004
Location: China - Beijing
Distribution: Debian (SID)
Posts: 1
Rep:
|
This Post was useful. I got the same problem with php-5.0.0RC2 on Debian SID. I just needed to download and install libxml2 with standard configuration: (./configure) and it worked !
Thanks !
|
|
|
|
05-28-2004, 12:09 PM
|
#4
|
|
LQ Newbie
Registered: May 2004
Posts: 1
Rep:
|
Hi,
A simpler solution is to install a libxml2-devel rpm package.
|
|
|
|
10-01-2004, 11:03 PM
|
#5
|
|
Member
Registered: Sep 2004
Location: san diego, ca
Distribution: Slackware 10.2
Posts: 74
Rep:
|
do i need to re-./configure php5 after i ./configure libxml2-devel ?
|
|
|
|
11-06-2004, 08:55 AM
|
#6
|
|
Member
Registered: Oct 2004
Distribution: Debian Sid (Unstable)
Posts: 41
Rep:
|
Mine's not working unfortunately...
pentium:~/download/libxml2-2.6.5# ./configure
<ETC>
pentium:~/download/libxml2-2.6.5# make
-bash: make: command not found
pentium:~/download/libxml2-2.6.5# make test
-bash: make: command not found
pentium:~/download/libxml2-2.6.5# make install
-bash: make: command not found
pentium:~/download/libxml2-2.6.5#
|
|
|
|
11-09-2004, 06:15 AM
|
#7
|
|
LQ Newbie
Registered: Feb 2004
Location: Nepal
Posts: 25
Rep:
|
libxml2 error
I got this error while doing installation of libxml2
./configure
make
elfgcchack.h:7518: warning: `visibility' attribute directive ignored
elfgcchack.h:7524: warning: `visibility' attribute directive ignored
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -c parser.c -Wp,-MD,.deps/parser.TPlo -o parser.o >/dev/null 2>&1
source='tree.c' object='tree.lo' libtool=yes \
depfile='.deps/tree.Plo' tmpdepfile='.deps/tree.TPlo' \
depmode=gcc /bin/sh ./depcomp \
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -c -o tree.lo tree.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -c tree.c -Wp,-MD,.deps/tree.TPlo -fPIC -DPIC -o .libs/tree.o
In file included from libxml.h:57,
from tree.c:14:
elfgcchack.h:59: warning: `visibility' attribute directive ignored
elfgcchack.h:63: warning: `visibility' attribute directive ignored
elfgcchack.h:70: warning: `visibility' attribute directive ignored
elfgcchack.h:76: warning: `visibility' attribute directive ignored
elfgcchack.h:82: warning: `visibility' attribute directive ignored
elfgcchack.h:88: warning: `visibility' attribute directive ignored
elfgcchack.h:94: warning: `visibility' attribute directive ignored
|
|
|
|
02-27-2005, 10:44 PM
|
#8
|
|
Member
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291
Rep:
|
Very useful thread... I give 10 out of 10. Sammy22, that was the first thing i did..to download the rpm and install it but that doesn't work. You have to get .tar.gz and install it i guess.... Thanks ridertech.
|
|
|
|
10-04-2005, 07:52 AM
|
#9
|
|
LQ Newbie
Registered: Oct 2005
Posts: 1
Rep:
|
Try to install libxml2 developement packages.
With Debian:
apt-get install libxml2-dev
|
|
|
|
10-05-2006, 02:02 PM
|
#10
|
|
LQ Newbie
Registered: Apr 2004
Location: Brazil
Distribution: Debian Gnu/Linux
Posts: 7
Rep:
|
Compile LibXML2-6-26
i get the package in http://developer.bluesystems.com.br and compile using Debian 4.0 and run ....
|
|
|
|
03-03-2007, 12:22 AM
|
#11
|
|
LQ Newbie
Registered: Oct 2006
Distribution: Ubuntu 6.06 Dapper
Posts: 5
Rep:
|
Quote:
|
Originally Posted by ridertech
|
i can open the link you gave. so i google around and found this
but thanks for this great thread, i encountered the same problem
|
|
|
|
05-15-2007, 03:31 AM
|
#12
|
|
LQ Newbie
Registered: May 2007
Posts: 1
Rep:
|
Solution
Hi there... with debian/ubuntu, simply install build-essential and libxml2-dev
Hope this helps...
|
|
|
1 members found this post helpful.
|
07-13-2007, 04:17 PM
|
#13
|
|
LQ Newbie
Registered: Dec 2006
Location: Alabama
Distribution: Gentoo
Posts: 2
Rep:
|
yes, install libxml2-dev
"sudo apt-get install libxml2-dev" will fix this dependency issue on Debian/Ubuntu derivatives...
|
|
|
|
01-08-2008, 09:27 PM
|
#14
|
|
LQ Newbie
Registered: Jan 2008
Posts: 1
Rep:
|
Exactly, the right answer.
Quote:
Originally Posted by microry
Hi there... with debian/ubuntu, simply install build-essential and libxml2-dev
Hope this helps...
|
Tank you very much, just that i need.
Very good place to know about linux.
|
|
|
|
01-17-2009, 09:57 AM
|
#15
|
|
LQ Newbie
Registered: Jan 2009
Posts: 3
Rep:
|
Ubuntu installation
Hi,
In ubuntu you should use the libxml2-devel bundle to be install, after that the configuraiton goes ok.
Thanks a lot
George
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:23 PM.
|
|
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
|
|