Hello, all: I am a new subscriber to this list, so forgive me if I've overlooked a tutorial or FAQ on this topic somewhere.
I am trying to install PHP 4.0.6 from source as a dynamic module into Apache 1.3.22 with MySQL access enabled on my Darwin 1.4.1 system. I'm having trouble with the MySQL part. I can get PHP up and running without MySQL, but for some reason the compile fails when I include the --with-mysql=/usr/local/mysql option to the ./configure command. Here is my setup: Apache 1.3.22 installed from source with the following ./configure options: --enable-module=most --enable-module-max The mod_dav DSO installed from source with the following ./configure option: --with-apxs=/usr/sbin/apxs The mod_hfs DSO installed from source with no ./configure options (this is a minor mod that spares Apache from headaches with Darwin's case-insensitivity) MySQL 3.23.45 installed from source with the following ./configure options: --prefix=/usr/local/mysql --with-unix-socket-path=/usr/local/mysql/run/mysql_socket --with-mysql-user=mysqladm --with-comment --with-debug Nothing gives me any problems -- it all works great. And I've added PHP4 as well: $ cd apache_mod_php-6-2/php $ ./configure --with-xml --with-zlib --with-apxs=/usr/sbin/apxs $ make $ sudo make install So I know that everything is fine except when I try to use the --with-mysql option. When I tried it: $ cd apache_mod_php-6-2/php $ ./configure --with-xml --with-zlib --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql (echoed configure output omitted) $ make The problem is here. I get the following output (after 'make' is finished): *** Warning: This library needs some functionality provided by -lmysqlclient. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: This library needs some functionality provided by -lmysqlclient. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have. *** Warning: libtool could not satisfy all declared inter-library *** dependencies of module libphp4. Therefore, libtool will create *** a static module, that should work as long as the dlopening *** application is linked with the -dlopen flag. ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libZend.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libsapi.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libmain.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libregex.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libzlib.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libmysql.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libpcre.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libposix.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libsession.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libstandard.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libxml.al ~/tmp/apache_mod_php-6-2/php/.libs/libphp4.lax/libtsrm.al ~/tmp/apache_mod_php-6-2/php/.libs Making all in pear $ Am I missing the 'lmysqlclient.so' file? Should it be found in the MySQL source tree? Because I don't have that file anywhere on my system, yet it seems that PHP and MySQL are designed to work well with each other. Why would I not have this vital file? If anyone can help me with this problem, I would be eternally grateful -- I need to have this operational in less than two days! (Or I lose my job.) Thanks very much, Erik Price -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]