PHP 4.0 Bug #5762: Configuration of --with-mysql does not work, even when updated w/info f Rasmus

From: Date: Mon, 24 Jul 2000 18:26:17 +0000
Subject: PHP 4.0 Bug #5762: Configuration of --with-mysql does not work, even when updated w/info f Rasmus
Groups: php.dev 
Request: Send a blank email to php-dev+get-25791@lists.php.net to get a copy of this message
From: bughuntr@ctelcom.net Operating system: RedHat 6.2 PHP version: 4.0.1pl2 PHP Bug Type: Installation problem Bug description: Configuration of --with-mysql does not work, even when updated w/info f Rasmus --with-mysql configure problems. Any combination of --with-mysql=/usr --with-mysql=/usr/local --with-mysql=/usr/include --with-mysql=/usr/include/mysql fails. Rasmus replied it was adequately explained in the install file. Perhaps their is an updated install file? I looked: ----------------------------------------- I did not find this explained in the INSTALL file that came with the 4.0.1pl2 download. It says: For MySQL support, since newer versions of MySQL installs its various components under /usr/local, this is the default. If you have changed the location you can specify it with: --with-mysql=/opt/local for example. Otherwise just use: --with-mysql this does not indicate that you should use /usr only. There is no indication in that file that _both_ the library and header files need to be found, and that is the path you should choose. The ./configure script puts out the following warning: +--------------------------------------------------------------------+ | *** WARNING *** | | | | You chose to compile PHP with the built-in MySQL support. If you | | are compiling a server module, and intend to use other server | | modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, | | mod_perl) you must add | --with-mysql=/path/to/mysql to your configure line. | .... furthermore, when you follow the INSTALL FILE, (--with-mysql=/usr/local) you get this error: ... checking for MySQL support... yes configure: error: Cannot find header files under /usr/local And, when you do what you said (--with-mysql=/usr), you get this error: ... checking for MySQL support... yes configure: error: Cannot find header files under /usr I get this same error messages with /usr/include, or /usr/include/mysql. I am reopening this bug with the information I have just provided.  On 23 Jul 2000, Bug Database wrote: > ID: 5741 > Updated by: rasmus > Reported By: bughuntr@ctelcom.net > Status: Closed > Bug Type: Installation problem > Assigned To: > Comments: > > ./configure --with-mysql=/usr > > This is explained adequately in the INSTALL file. It needs to find both header and library files, and since there are no library files anywhere under /usr/include, you have to provide the lowest-level path under which both the .a or .so and the .h files exist. And in your case that would be /usr > > Full Bug description available at: http://bugs.php.net/?id=5741 >

« previous php.dev (#25791) next »