RE: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8
| From: | Aaron Axelsen | Date: | Fri, 21 May 2004 00:06:42 +0000 |
| Subject: | RE: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186641@lists.php.net to get a copy of this message | ||
The mysql 3.x was installed with prefix /usr/local/mysql
--
Aaron Axelsen
Email: lists@frozenpc.net
-----Original Message-----
From: Curt Zirzow [mailto:php-general@zirzow.dyndns.org]
Sent: Thursday, May 20, 2004 7:08 PM
To: php-general@lists.php.net
Subject: Re: [PHP] [PHP 4.3.6] Compiling agaisnt MySQL 4.0.18 on Redhat 8
* Thus wrote Aaron Axelsen (lists@frozenpc.net):
> Greetings,
>
> I compiled and installed mysql from source, and now I am trying to
> recompile php agaisnt the new version of MySQL (was previous running
> 3.23.53). Here is the configure string I used:
>
> ./configure --with-apxs2=/usr/local/apache/bin/apxs
> --prefix=/usr/local/php --with-mysql=/usr/local/mysql
> --with-pgsql=/usr/local/pgsql --with-gettext
>
> ...
>
> ext/mysql/php_mysql.lo: In function `zif_mysql_create_db':
> /home/aaron/php-4.3.6/ext/mysql/php_mysql.c:1158: undefined reference
> to `mysql_create_db'
That sound like php used a 3.x mysql_version.h file to include but is trying
to link against the real 4.x mysqlclient.so (since 4.x does not have
mysql_create_db).
At what prefix was mysql 3.x installed? /usr or /usr/local?
Couple quick commands to find your mysql files > locate mysql.h > locate
mysql_version.h > find / find / -type f -name "mysql*.h" #last resort
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php