Jump to content

Recommended Posts

Hi all.

 

I'm a bit of a newbie, but getting there ...

 

This is a new NetBSD 4.0 box, and I have Apache and MySQL installed and

working. My problem is PHP.

 

After downloading and extracting the source, I:

 

cd /usr/local/src/php-5.2.5

./configure

--prefix=/usr/local/php

--with-mysqli=/usr/local/mysql/bin/mysql_config

--with-apxs2=/usr/local/apache2/bin/apxs

 

And got tjis result:

. . .

Configuring extensions

checking whether to enable LIBXML support... yes

checking libxml2 install dir... no

checking for xml2-config path...

configure: error: xml2-config not found. Please check 

your libxml2 installation.

 

Google turned up a partial answer: install libxml2-devel

 

I used pkg_add to install libxml2, but I could not find any

libxml2-devel package on NetBSD.org.

 

./configure still fails

 

I found xml2-config in /usr/pkg/bin, and in the PHP configure script I see a switch to specify the path. So I added --with-libxml-dir=/usr/pkg/bin to the configure args.

 

configure now say's:

 

Configuring extensions

checking whether to enable LIBXML support... yes

checking libxml2 install dir... /usr/pkg/bin

checking for xml2-config path...

configure: error: xml2-config not found. Please check your libxml2 installation.

 

That's a bit different - but it still can't find xml2-config.

 

I can't figure out where to go from here. (And I'm going blind trying to decifer the PHP configure file.)

 

Thanks (a lot!) in advance.

 

Bob

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.