Re: PHP 4.0 Bug #4567: Fails to find mysql.h during make (solution included)
| From: | Sascha Schumann | Date: | Wed, 24 May 2000 10:33:41 +0000 |
| Subject: | Re: PHP 4.0 Bug #4567: Fails to find mysql.h during make (solution included) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-19372@lists.php.net to get a copy of this message | ||
On Tue, 23 May 2000, Duane Gran wrote:
> > At 01:21 AM 5/24/00 +0000, ragnar@spinweb.net wrote:
> > >When building php 4.0.0 on Solaris 8 for SPARC, it fails compiling with an
> > >error from ./ext/mysql/php_mysql.c:
> > >
> > >gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/php-4.0.0/ext/mysql
> > >-I/usr/local/src/php-4.0.0 -I/usr/local/src/apache_1.3.12/src/include
> > >-I/usr/local/src/apache_1.3.12/src/os/unix -I/usr/local/src/php-4.0.0/Zend
> > >-I/usr/local/src/php-4.0.0 -DXML_BYTE_ORDER=21 -g -O2 -Wall -c
> > >php_mysql.c && touch php_mysql.lo
> > >php_mysql.c:58: mysql.h: No such file or directory
> >
> > did you ./configure ..blah blah --with-mysql=/dir/to/mysql
> >
>
> I didn't explicitly declare the location, as I used the default
If you do not specify an external location, the embedded MySQL client
library will be used. So, --with-mysql=/usr/local would be correct.
- Sascha