Bug 13141

Summary: PHP3 spec file doesn't support MySQL well
Product: [Retired] Red Hat Linux Reporter: Bob Ramstad <rramstad>
Component: phpAssignee: Nalin Dahyabhai <nalin>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-06-28 01:35:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Bob Ramstad 2000-06-28 01:35:13 UTC
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 
configuration line.

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.

-- Bob

Comment 1 Nalin Dahyabhai 2000-06-28 01:44:01 UTC
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 ***