RE: [PHP] building php5.0 as an apache module, with mysqli functionality
| From: | bruce | Date: | Mon, 19 Jul 2004 17:40:37 +0000 |
| Subject: | RE: [PHP] building php5.0 as an apache module, with mysqli functionality | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-191043@lists.php.net to get a copy of this message | ||
ok...
here's what this issue appears to be narrowing down to... i'm guessing that
it has something to do with using the same libs for both mysql/mysqli. i've
been able to get a running app for only mysqli, but adding the mysql
function to the ./configure gives the "multiple define" issues that i've
been getting...
so my question, is... what should the "--with-mysql=???" be pointing
towards. i've tried a number of dirs with no luck. as a matter of fact..
i've been able to supply a non-existent path for --with-mysql=/foo/whatever
and i get the same "multiple define" errors...
so it appears to be an issue of correctly setting up the "./configure". i'm
also open to looking at the makefile process. can anyone provide information
as to how the Makefile is created, and if it should be modified...
i'm currently doing
./configure
make
make install
the "make" is where i have the "multiple define" errors
my ./configure is
==>>
./configure --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc --with
-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --wi
th-ldap --with-pgsql
thanks...
-bruce
-----Original Message-----
From: Curt Zirzow [mailto:php-general@zirzow.dyndns.org]
Sent: Sunday, July 18, 2004 7:23 PM
To: bruce
Cc: mysql@lists.mysql.com; php-general@lists.php.net;
dev@httpd.apache.org; users@httpd.apache.org
Subject: Re: [PHP] building php5.0 as an apache module, with mysqli
functionality
* Thus wrote bruce:
> hi...
>
> this is cross posted to a number of lists as it seems to touch on all the
> apps...
Please don't do this.
>
> i'm trying to use the following "configure"
>
>
./configure --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc --with
> -mysql=/usr/include/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config
-
> -with-ldap --with-pgsql
If you read the installation at http://php.net/mysqli, you can
not
include two versions of mysql and mysqli client libraries.
> the issue i'm having is that i can't get make portion to work without
> returning "multiple define" errors like
>
> [root@lserver2 php-5.0.0]# make
> /bin/sh
/usr/src/php-5.0.0/libtool --silent --preserve-dup-deps --mode=link
>
> [snip way to much output ]
Can you compile mysql without mysqli and vise versa without
problems?
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!