Re: [PHP-DB] MySQL support compiled in, but functions not recognized From: Olivier Bourgeois (olivier <email protected>)
Date: 11/14/00

> Hello Everyone-
>
> I recently installed PHP 4.0.3p|1 (the latest version) onto my Linux
> machine, running Apache. I
> compiled PHP with MySQL support (--with-mysql). However, when I try to use
> the mysql_connect()
> function, I get a "Fatal error" message saying that I am using an
> unrecognized or undefined
> function.
>
> The PHP compile process seemed to go fine- I have re-compiled it from
> scratch a few times now.
> Nothing seems to work. I tried re-compiling with the explicit path to
> MySQL- when I did that, the compile
> crashed about halfway through, saying it could not find the necessary MySQL
> header files. That
> makes me think I am doing something wrong. My MySQL daemon is running
> fine, however, as is Apache.
> Could I be forgetting a conf file modification or the like that would cause
> PHP to not recognize the
> MySQL functions? Note that this isn't a DB connection problem: PHP isn't
> recognizing the mysql_connect()
> function at all.
>

Hello,
    if PHP complains about some missing headers for MySQL there is a lot of
chances that these headers are not installed, or you didn't provide the right
path to it.
    Supposing you're under RedHat or something similar, try 'rpm -qa |grep
mysql' . If you don't see MySQL-devel-xxx.rpm package install it. Then run
configure again.It must work
    If it doesn't the path you provided isn't the right, you'll have to locate
the file mysql.h

bye.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>