LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 04-11-2004, 09:07 PM   #1
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85
Thanked: 0
PHP 5 cannot find xml2-config for libxml2 support


[Log in to get rid of this advertisement]
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
ridertech is offline     Reply With Quote
Old 04-12-2004, 04:32 PM   #2
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85
Thanked: 0

Original Poster
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)
ridertech is offline     Reply With Quote
Old 04-27-2004, 11:55 PM   #3
auhn
LQ Newbie
 
Registered: Apr 2004
Location: China - Beijing
Distribution: Debian (SID)
Posts: 1
Thanked: 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 !
auhn is offline     Reply With Quote
Old 05-28-2004, 01:09 PM   #4
samy22
LQ Newbie
 
Registered: May 2004
Posts: 1
Thanked: 0
Hi,
A simpler solution is to install a libxml2-devel rpm package.
samy22 is offline     Reply With Quote
Old 10-02-2004, 12:03 AM   #5
breezewax
Member
 
Registered: Sep 2004
Location: san diego, ca
Distribution: Slackware 10.2
Posts: 74
Thanked: 0
do i need to re-./configure php5 after i ./configure libxml2-devel ?
breezewax is offline     Reply With Quote
Old 11-06-2004, 09:55 AM   #6
The Pentium Guy
Member
 
Registered: Oct 2004
Distribution: Debian Sid (Unstable)
Posts: 41
Thanked: 0
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#
The Pentium Guy is offline     Reply With Quote
Old 11-09-2004, 07:15 AM   #7
bishal
LQ Newbie
 
Registered: Feb 2004
Location: Nepal
Posts: 25
Thanked: 0
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
bishal is offline     Reply With Quote
Old 02-27-2005, 11:44 PM   #8
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291
Thanked: 0
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.
dilberim82 is offline     Reply With Quote
Old 10-04-2005, 08:52 AM   #9
loren77
LQ Newbie
 
Registered: Oct 2005
Posts: 1
Thanked: 0
Try to install libxml2 developement packages.
With Debian:
apt-get install libxml2-dev
loren77 is offline     Reply With Quote
Old 10-05-2006, 03:02 PM   #10
jaccon
LQ Newbie
 
Registered: Apr 2004
Location: Brazil
Distribution: Debian Gnu/Linux
Posts: 5
Thanked: 0
Compile LibXML2-6-26

i get the package in http://developer.bluesystems.com.br and compile using Debian 4.0 and run ....
jaccon is offline     Reply With Quote
Old 03-03-2007, 01:22 AM   #11
R960XT
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu 6.06 Dapper
Posts: 5
Thanked: 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
R960XT is offline     Reply With Quote
Old 05-15-2007, 04:31 AM   #12
microry
LQ Newbie
 
Registered: May 2007
Posts: 1
Thanked: 0
Solution

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

Hope this helps...
microry is offline  
Tag This Post , ,
Reply With Quote
Old 07-13-2007, 05:17 PM   #13
ashnazg
LQ Newbie
 
Registered: Dec 2006
Location: Alabama
Distribution: Gentoo
Posts: 2
Thanked: 0
yes, install libxml2-dev

"sudo apt-get install libxml2-dev" will fix this dependency issue on Debian/Ubuntu derivatives...
ashnazg is offline     Reply With Quote
Old 01-08-2008, 10:27 PM   #14
chenzhen_li
LQ Newbie
 
Registered: Jan 2008
Posts: 1
Thanked: 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.
chenzhen_li is offline     Reply With Quote
Old 01-17-2009, 10:57 AM   #15
gnikol1974
LQ Newbie
 
Registered: Jan 2009
Posts: 1
Thanked: 0
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
gnikol1974 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 8 03-13-2007 02:00 AM
PHP5 xml2-config bcf2 Linux - Software 1 07-03-2005 11:45 AM
PHP libxml2 error viperkt400 Linux - Software 1 03-02-2005 03:06 PM
Can't find php config? gakom Mandriva 2 12-01-2004 08:34 AM
./configure cant find xml2-config (neither can I) unholy Linux - Software 10 10-26-2003 01:56 PM


All times are GMT -5. The time now is 11:31 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration