Subject: Re: Compiling mod_php with mysql
To: None <netbsd-users@netbsd.org>
From: None <stefan.dengscherz@gmx.net>
List: netbsd-users
Date: 10/18/2003 19:26:58
i'm compiling mod_php with mysql support this way:

cd /usr/pkgsrc/www/ap-php4
make install clean clean-depends
cd /usr/pkgsrc/databases/php4-mysql
make install clean clean-depends

then add

extension=mysql.so

to /usr/pkg/etc/php.ini

working fine this way - there may be a shorter solution but this gets me
exactly what i need.

regards,

-sd

> I am having trouble compiling mod_php from devel/ap-php4.
> 
> I added the following to Makefile.php
> 
> CONFIGURE_ARGS+=    --with-mysql=/usr/pkg
> CONFIGURE_ARGS+=    --with-zlib
> CONFIGURE_ARGS+=    --with-zlib-dir=/usr/lib
> 
> I have mysql-client package installed by the way.
> When i run make configure fails. Here is output from config.log
> .........
> configure:53806: checking for mysql_error in -lmysqlclient
> configure:53825: cc -o conftest -O2 -I/usr/pkg/include
> -I/usr/pkg/include -I/usr/pkg/include -R/usr/pkg/lib/mysql
> -L/usr/pkg/lib/mysql  -Wl,-E -L/usr/pkg/lib -Wl,-R/usr/pkg/lib
> -L/usr/pkg/lib -R/usr -L/usr conftest.c -lmysqlclient  -lz -lz -lm
> 1>&5
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
> 
> Any ideas whats going wrong ?
>