LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-11-2004, 08:07 PM   #1
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
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
 
Old 04-12-2004, 03:32 PM   #2
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Original Poster
Rep: Reputation: 15
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)
 
Old 04-27-2004, 10:55 PM   #3
auhn
LQ Newbie
 
Registered: Apr 2004
Location: China - Beijing
Distribution: Debian (SID)
Posts: 1

Rep: Reputation: 0
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 !
 
Old 05-28-2004, 12:09 PM   #4
samy22
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Hi,
A simpler solution is to install a libxml2-devel rpm package.
 
Old 10-01-2004, 11:03 PM   #5
breezewax
Member
 
Registered: Sep 2004
Location: san diego, ca
Distribution: Slackware 10.2
Posts: 74

Rep: Reputation: 15
do i need to re-./configure php5 after i ./configure libxml2-devel ?
 
Old 11-06-2004, 08:55 AM   #6
The Pentium Guy
Member
 
Registered: Oct 2004
Distribution: Debian Sid (Unstable)
Posts: 41

Rep: Reputation: 15
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#
 
Old 11-09-2004, 06:15 AM   #7
bishal
LQ Newbie
 
Registered: Feb 2004
Location: Nepal
Posts: 25

Rep: Reputation: 15
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
 
Old 02-27-2005, 10:44 PM   #8
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Rep: Reputation: 30
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.
 
Old 10-04-2005, 07:52 AM   #9
loren77
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Try to install libxml2 developement packages.
With Debian:
apt-get install libxml2-dev
 
Old 10-05-2006, 02:02 PM   #10
jaccon
LQ Newbie
 
Registered: Apr 2004
Location: Brazil
Distribution: Debian Gnu/Linux
Posts: 7

Rep: Reputation: 0
Compile LibXML2-6-26

i get the package in http://developer.bluesystems.com.br and compile using Debian 4.0 and run ....
 
Old 03-03-2007, 12:22 AM   #11
R960XT
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu 6.06 Dapper
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by ridertech
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
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
 
Old 05-15-2007, 03:31 AM   #12
microry
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 1
Solution

Hi there... with debian/ubuntu, simply install build-essential and libxml2-dev

Hope this helps...
 
1 members found this post helpful.
Old 07-13-2007, 04:17 PM   #13
ashnazg
LQ Newbie
 
Registered: Dec 2006
Location: Alabama
Distribution: Gentoo
Posts: 2

Rep: Reputation: 0
yes, install libxml2-dev

"sudo apt-get install libxml2-dev" will fix this dependency issue on Debian/Ubuntu derivatives...
 
Old 01-08-2008, 09:27 PM   #14
chenzhen_li
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Exactly, the right answer.

Quote:
Originally Posted by microry View Post
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.
 
Old 01-17-2009, 09:57 AM   #15
gnikol1974
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 1
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.
  


Reply

Tags
php, php5, phpize


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
xml2-config not found, can't install php snip128 Linux - Newbie 12 09-29-2011 03:32 PM
PHP5 xml2-config bcf2 Linux - Software 1 07-03-2005 10:45 AM
PHP libxml2 error viperkt400 Linux - Software 1 03-02-2005 02:06 PM
Can't find php config? gakom Mandriva 2 12-01-2004 07:34 AM
./configure cant find xml2-config (neither can I) unholy Linux - Software 10 10-26-2003 12:56 PM


All times are GMT -5. The time now is 01:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration