Re: mod_php3-3.0.6-2 MySQL support?

Patrik Frisk (
Wed, 07 Jul 1999 20:33:33 +0200


Im trying to get php3 working with mysql and all goes well til i get to the
point when i should configure apache, then i get this error message and the
compiler aborts. Can someone give me a clue whats wrong?

in the php-3.0.7
./configure --prefix=/home
cd ../php-3.0.7
./configure --with-mysql --with-apache=../apache_1.3.6 --enable-track-vars
make install
cd ../apache_1.3.6
./configure --prefix=/home --activate-module=src/modules/php3/libphp3.a
Configuring for Apache, Version 1.3.6
 + using installation path layout: Apache (config.layout)
 + activated php3 module (modules/php3/libphp3.a)
Creating Makefile
Creating Configuration.apaci in src
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
Creating Makefile in src
 + configured for Linux platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
    o php3_module uses ConfigStart/End
 + doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. This is most likely because your C compiler
** is not ANSI. Apache requires an ANSI C Compiler, such
** as gcc. The above error message from your compiler
** will also provide a clue.

This archive was generated by hypermail 2.0b3 on Sat Jul 31 1999 - 11:30:03 MDT