Posted by David Haynes on 03/13/06 15:45
John Smith wrote:
> Can someone please help me build php with mysql support on CentOS. Have
> installed MySql and that works okay. I have downloaded the latest version of
> php and tried to build it but I keep getting errors about missing function
> mysql_connect(). This appears to be caused by not having extensions=mysql in
> the php.ini file. However when I build php it does not make a mysql.so file,
> where does this come from? I have tried using the configure --with-mysql but
> it still does not generate it. I have managed to get it from another
> distribution but it does not work correctly due to incorrect versions of
> shared libraries.
> How do you build the mysql.so file?
>
> Thanks
>
> Jon
Disclaimer: I use Fedora Core 4
With Fedora, the --with-mysql (or --with-mysqli) needs to point to the
mysql_config program (typically in the bin directory of mysql).
So, my directive is:
--with-mysqli=/opt/local/mysql/bin/mysql_config
-david-
Navigation:
[Reply to this message]
|