| Bug #13803 | wrong info provided if libz is missing | ||
|---|---|---|---|
| Submitted: | 6 Oct 2005 13:39 | Modified: | 29 Dec 2006 17:35 |
| Reporter: | Philip Stoev | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connectors: DBD::mysql ( Perl ) | Severity: | S3 (Non-critical) |
| Version: | DBD-mysql-2.9008 | OS: | Linux (Fedora Core 4) |
| Assigned to: | CPU Architecture: | Any | |
[6 Oct 2005 20:12]
Hartmut Holzgraefe
same for SuSE RPMs
[10 Apr 2006 15:57]
Christoper Thompson
************************************************************************** Please note the contents #18294 This is much the same problem. Regards, **************************************************************************
[29 Dec 2006 17:35]
Jim Winstead
A fix for this has been committed to the DBD::mysql repository, and it will be in the next release (probably 4.01).

Description: If libz headers are missing from the machine, attempting to install DBD::Mysql results in the following: An error occurred while linking the DBD::mysql driver. The error message seems to indicate that you don't have a libz.a, or a libz.so. This is typically resolved by: 1.) You may try to remove the -lz or -lgz flag from the libs list by using the --libs switch for "perl Makefile.PL". 2.) On Red Hat Linux install libz-devel 3.) On other systems, please contact the mailing list Msql-Mysql-modules@lists.mysql.com For further hints, see INSTALL.html, section Linker flags. However on Fedora, and , it appears on all recent Red Hat systems, the package is called zlib-devel and not libz-devel How to repeat: Install mysql-server and mysql-client RPMs without installing mysql-devel. Then install DBD::MySQL from CPAN. Suggested fix: Update libz-devel to zlib-devel and possibly provide more information for non-RedHat systems, as well as commands by which users can quickly obtain the required package. Making the mysql RPMs dependent on zlib and zlib-devel may also be an idea to be considered. It makes no sense not to use compression when one is freely available.