LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Error with Perl DBD::mysql (https://www.linuxquestions.org/questions/programming-9/error-with-perl-dbd-mysql-297741/)

ginda 03-04-2005 04:56 PM

Error with Perl DBD::mysql
 
Hello all

Im starting development with perl on a linux suse 9.1 now, im use to windows. I have perl installed and it works fine, i have installed the DBI fine but now need to install the DBD for mysql so i can talk to a mysql database. When i try to compile it i.e

perl Makefile.PL - it works fine but when i
make - i recieve the error


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.
make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1


Any ideas what i need to do or install?????

Can anyone help this newbie......Thanks in advance

acid_kewpie 03-04-2005 05:32 PM

just as the error says, you need to install libz and libz-devel for rpm based distros

ginda 03-04-2005 05:42 PM

Thanks acid but where do i get them from?

acid_kewpie 03-04-2005 06:20 PM

your distro cds, rpm.pbone.net or a millino other places via google.


All times are GMT -5. The time now is 01:11 AM.