Dbd

Hello!

I am getting this message on a RH 7.3 box:

install_driver(mysql)_failed:_Can't_locate_DBD/mysql.pm_in_@INC_(@INC_contains:_/usr/local/psa/lib/perl5/site_perl/5.6.1_/usr/lib/perl5/5.6.1/i386-linux_/usr/lib/perl5/5.6.1_/usr/lib/perl5/site_perl/5.6.1/i386-linux_/usr/lib/perl5/site_perl/5.6.1_/usr/lib/perl5/site_perl_/usr/lib/perl5/vendor_perl/5.6.1/i386-linux_/usr/lib/perl5/vendor_perl/5.6.1_/usr/lib/perl5/vendor_perl_.)_at_(eval_1)_line_3,_<STDIN>_line_45./Perhaps_the_DBD::mysql_perl_module_hasn't_been_fully_installed,/or_perhaps_the_capitalisation_of_'mysql'_isn't_right.


Basically it means the the modules for DBD have yet to be installed. When I install the modules from CPAN, it tells me


m -f blib/arch/auto/DBD/mysql/mysql.so
LD_RUN_PATH="/usr/lib/mysql:/usr/lib:/lib" /usr/bin/perl myld gcc -shared -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status


An error occurred while linking the DBD::mysql driver. The error
message seems to indicate that you don't have a libz.a, libgz.a,
libz.so or libgz.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?

 

 

 

 

Top