Re: MySQL and MySQLi compiling
| From: | Chris | Date: | Fri, 18 Feb 2005 07:17:54 +0000 |
| Subject: | Re: MySQL and MySQLi compiling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208996@lists.php.net to get a copy of this message | ||
Hans Zaunere wrote:
I actually tried that one (along with several others). In my continuing saga I tried this: ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql-include-dir=/usr/include/mysql/ --with-mysql-lib-dir=/usr/lib/mysql/ --with-mysqli=/usr/bin/mysql_config It compiled, but the mysql extension wasn't there. It strikes me thatmaybe if I tried ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr --with-mysql-include-dir=/usr/include/mysql --with-mysql-lib-dir=/usr/lib/mysql --with-mysqli=/usr/bin/mysql_config it might work. I've managed to stave of the need for the mysql extension for a week or two, but I have a good feeling about that one, and am hopeful it will work. I'll probably end up trying that one this weekend. Thanks, ChrisHi, I've been trying to get these 2 compiled together for a while, and have had no luck. WHere my problem lies, I think, is that I'm not sure what directory should be specified on the --with-mysql part ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/include/mysql/ --with-mysqli=/usr/bin/mysql_config I have my own compiled Apache (It is Apache 2) , and MySQL 4.1.9 installed (the packages off mysql.com). The PHP documentation jsut says point it to the install dir. I'm nto sure what counts as the install dir for the MySQL packages. Any advice would be appreciated.Both MySQL and MySQL libs can be compiled into PHP. Try --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config H