Red Hat Bugzilla – Bug 13141
PHP3 spec file doesn't support MySQL well
Last modified: 2008-05-01 11:37:56 EDT
howdy. i tried to follow various directions to get PHP3 to build with
MySQL support and had a lot of problems.
in particular, if i uncomment the various lines in the spec file to enable
MySQL support, i get errors from the system that there is no "mysql"
i ended up hacking and slashing my way through it by manually taking the
%post, %postun and %files mysql sections and slapping them on the main
the other thing i had to do (of course) was add a "--with-mysql" to the
certainly for PHP4 it would be nice if this could get straightened out so
it is easy to fix things up for MySQL support. getting Apache + PHP +
MySQL to work together seems to be a common task and it is more difficult
than necessary as it stands now.
here's a really nutty idea... how about providing TWO spec files, with
different names -- one php.spec and one php-mysql.spec? that would avoid a
whole lot of problems and might be the most elegant solution.
This should already be resolved in Raw Hide (ftp://ftp.redhat.com/pub/rawhide/),
because PHP 4.0 now includes a bundled version of the MySQL client, and you need
only change a --without-mysql to a --with-mysql to enable it.
*** This bug has been marked as a duplicate of 10987 ***