Subject: Re: can't connect to mysql from php ,NetBSD 3.0
To: None <port-cobalt@netbsd.org>
From: Rowdy <rowdy@netspace.net.au>
List: port-cobalt
Date: 03/25/2006 23:38:06
Jahislove wrote:
> i try to install php-mysql as you said , but here is the log :
> 
<snip>
> 
> by the way , with a phpinfo()in index.php , I get this :
> 
> Configure Command      './configure' '--without-mysql' '--without-iconv' 
> '--disable-posix' '--with-config-file-path=/usr/pkg/etc' 
> '--with-exec-dir=/usr/pkg/libexec/php4' '--with-regex=system' 
> '--enable-memory-limit' '--enable-track-vars' '--enable-ipv6' 
> '--with-openssl=/usr' '--with-apxs2=/usr/pkg/sbin/apxs' 
> '--prefix=/usr/pkg' '--host=mipsel--netbsd' '--mandir=/usr/pkg/man'
> 
> it seem that php is installed without mysql , but I don't know how to 
> install with mysql .
> 
> can you tell me what to do pls?

According to the php makefile (Makefile.php):

# Note that this is generally not needed as many of the extensions (mysql,
# pgsql) may be dynamically loaded, and are separately packaged in pkgsrc.

 From that I would guess that you do not need to ./configure
--with-mysql=... and that installing php-mysql and dynamically loading
it would suffice.

I am not familiar with PHP, and this is more a PHP question rather than
a NetBSD/cobalt question.  A better place to find an authoritative
response would be a PHP mailing list :)

Rowdy