Re: php compile error with mysql undefined reference to `mysql_real_escape_string'
| From: | Jas | Date: | Mon, 15 Dec 2003 19:16:28 +0000 |
| Subject: | Re: php compile error with mysql undefined reference to `mysql_real_escape_string' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172752@lists.php.net to get a copy of this message | ||
You really should be subscribing to the php.install list when asking questions of this type. But it sounds like you need to first install mysql, then install apache, then install php. In that order and you should be ok. When in doubt read the manuals for each application for further information on the different options available for your ./configure.
HTH
Jas
Ivone Uribe wrote:
Hi all! I'm installing php4.3.3, apache 1.3.28 with mysql3.22.32 I'm using this option --with-mysql=/usr/local/mysql But when I compile the php code, I get this error: ext/mysql/php_mysql.o: In function `zif_mysql_client_encoding': /root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_character_set_name' ext/mysql/php_mysql.o: In function `zif_mysql_real_escape_string': /root/fuente/archivos/php-4.3.3/ext/mysql/php_mysql.c:1705: undefined reference to `mysql_real_escape_string' collect2: ld returned 1 exit status To solve it..I try the option --disable-cli on ./configure, and all ok. But now I have the same problem (/php-4.3.3/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_character_set_name') when I try to compile the apache... Please!!! Does anybody know how to solve it? Thanks in advance!! __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/