Geert86 has asked for the wisdom of the Perl Monks concerning the following question:
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. There are a few ways to resolve this:
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 and SUSE Linux, install the zlib-devel package
(sometimes called libz-devel)
3) On Debian and Ubuntu, install the zlib1g-dev package
4) On other systems, please contact the mailing list
perl@lists.mysql.com
For further hints, see INSTALL.html, section Linker flags.
make: *** blib/arch/auto/DBD/mysql/mysql.so Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
So I installed zlib1g-devI removed the directory /root/.cpan/build/DBD-mysql-4.007 but after a retry I had the same error.Running install for module DBD::mysql Running make for C/CA/CAPTTOFU/DBD-mysql-4.007.tar.gz Is already unwrapped into directory /root/.cpan/build/DBD-mysql-4.007 Has already been processed within this session Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error installing DBD::mysql on Debian
by moritz (Cardinal) on Jul 23, 2008 at 08:56 UTC | |
|
Re: Error installing DBD::mysql on Debian
by Arunbear (Prior) on Jul 23, 2008 at 11:23 UTC | |
|
Re: Error installing DBD::mysql on Debian
by Anonymous Monk on Jul 23, 2008 at 08:58 UTC | |
by duckyd (Hermit) on Jul 23, 2008 at 18:54 UTC | |
|
Re: Error installing DBD::mysql on Debian
by LesleyB (Friar) on Jul 23, 2008 at 18:35 UTC |