LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   xml2-config not found, can't install php (https://www.linuxquestions.org/questions/linux-newbie-8/xml2-config-not-found-cant-install-php-366764/)

snip128 09-24-2005 10:41 PM

xml2-config not found, can't install php
 
well, basically, whenever i try to install php 5.0.5, ./configure errors out with:

Code:

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.

'find / | grep xml2-config' returns nothing, and when i do 'apt-get install libxml2', it says that it is already installed, with the latest version....so...whats going on??

I'm running Debian linux in case you haven't already figured that out ;)

thx

Coldfish 09-25-2005 02:52 AM

Possibly another depencie(s) are affecting your installation process. To ensure the depenceis you can use different programs.

Firstly try to apt-get to install php 5.0.5

Code:

apt-get install php5
If it still doesn't , try the other applications which search and install all the depencies for you.

Code:

aptitude
Code:

synaptic
Still all of them doesn't work , I'd suggest you sould read this paper for the post-install debian configuration. In this papers you can find some programs which are related to depencies problem:

http://www.linuxquestions.org/questi...hreadid=224547

snip128 09-25-2005 11:20 AM

i'm trying to install it from the site... this is the download

php5 isn't a valid package for apt-get, but i'm not sure if i wnt it either...does it install with mysql? (it shouldn't use --without-mysql in the configure command...) the php that came with apache2 was configured without mysql so now i cant use php to connect to my mysql database, until i reinstall it...then it will hopefully work..

tkedwards 09-26-2005 01:07 AM

Quote:

php5 isn't a valid package for apt-get, but i'm not sure if i wnt it either...does it install with mysql?
I'd have though it would be there somewhere, maybe its in unstable or testing and it would definately have mysql support enabled.

Anyway have you tried install libxml2-devel or something like that? If you're compiling something it needs the -devel version of that package as well as the package itself.

dracon_ssa 10-01-2005 10:48 AM

hi,

I'd like to know how did you solve the problem, because I have the same problem.
I'm using this sources in apt-get:
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

Tks

dmbaguley 10-08-2005 02:03 PM

I was having the same problem, so I installed libxml2-dev. Did the trick!

elseano 02-12-2007 02:43 PM

Suse, same problem
 
Same fix worked, different installer lingo:

yast --install libxml2-devel

onlykfk 02-15-2007 02:23 PM

Quote:

Originally Posted by dmbaguley
I was having the same problem, so I installed libxml2-dev. Did the trick!

Hi!
How can i install libxml2-dev in a SUN Solaris 5.8?
And where do i download the correct version for this SO?

I found this version: ftp://ftp.sunfreeware.com/pub/freewa...sparc-local.gz, is it compatible with my SO Version?

JonathonReinhart 03-13-2007 01:00 AM

Yep! I'm running SuSE 10.2 and installing libxml2-devel fixed it!

Elmaese_22 02-19-2010 06:29 PM

Quote:

Originally Posted by snip128 (Post 1869440)
well, basically, whenever i try to install php 5.0.5, ./configure errors out with:

Code:

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.

'find / | grep xml2-config' returns nothing, and when i do 'apt-get install libxml2', it says that it is already installed, with the latest version....so...whats going on??

I'm running Debian linux in case you haven't already figured that out ;)

thx

Instala la libreria:

apt-get install libxml2-dev

y corre nuevamente el ./configure

compsciguy 02-12-2011 11:23 PM

Between installing libxml2-dev and libmysqlclient-dev (see http://www.linuxquestions.org/questi...-files-230651/) I was able to get PHP 5.5.9 running. Thanks!

CaptSol0 03-01-2011 08:24 AM

Im running ubuntu 8.04 and libxml2-dev fixed it for me too! Thanks @dmbaguley

muthuArumugam 09-29-2011 03:32 PM

Oracle Enterprise Linux - up2date libxml-devel fixed
 
In Oracle Enterprise Linux

up2date libxml-devel fixed the problem.


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