RE: [PHP-INSTALL] PHP & MySQL

From: Date: Fri, 02 Jan 2004 01:31:24 +0000
Subject: RE: [PHP-INSTALL] PHP & MySQL
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-12443@lists.php.net to get a copy of this message
Hmm, I think you want the mysql libs, not the bins; check and see if there are any mysql libraries in /usr/lib, otherwise you might try 'whereis libmysql'. Mysql builds real easy on RH 7.1 (not to mention you'd get a more recent release). Get the source and try this configure command: ./configure \ --prefix=/usr/local/mysql \ --enable-assembler \ --with-innodb \ --without-debug Then, when configuring PHP, use: --with-mysql=/usr/local/mysql Good luck! John -----Original Message----- From: Jeremy Booker [mailto:JerMe@nc.rr.com] Sent: Thursday, January 01, 2004 7:39 PM To: php-install@lists.php.net Subject: [PHP-INSTALL] PHP & MySQL Running on a Red Hat Linux 7.1 machine, I'm trying to configure/build/install PHP 4.3.4. I have installed the following MySQL RPMs. MySQL-shared-4.0.17-0 MySQL-client-4.0.17-0 MySQL-server-4.0.17-0 MySQL-devel-4.0.17-0 MySQL-bench-4.0.17-0 Next I ran the following configure command, as the INSTALL file says. [root@www php-4.3.4]# ./configure --with-mysql --with-apxs The command executed without any errors. However, I saw the warning about compiling PHP with the built-in MySQL support versus building PHP with the local MySQL support files and decided I should compile PHP *without* the built in support. I then ran: [root@www php-4.3.4]# ./configure --with-mysql=/usr/bin/mysql --with-apxs Thinking that the path to my MySQL binary was '/usr/bin/mysql' (which was confirmed by running 'which mysql'). However, the above configure command exits with the error. configure: error: Cannot find MySQL header files under /usr/bin/mysql Which, of course, makes sense because there aren't any header files located there. So, the 16 million dollar question is... what's the correct path that configure is looking for? Any help is greatly appreciated. Regards, Jeremy

« previous php.install (#12443) next »