rajyalakshmi has asked for the wisdom of the Perl Monks concerning the following question:

Hi ALL, In my perl script i am trying to connect to Database.But when i run the script i am getting the following problem though DBM::mysql module is installed and is updated:

Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-li nux-thread-multi/auto/DBD/mysql/mysql.so' for module DBD::mysql: /usr/lib/perl5/ site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbo l: SSL_CTX_free at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm li ne 230. at (eval 3) line 3 Compilation failed in require at (eval 3) line 3. Perhaps a required shared library or dll isn't installed where expected at fetch2.pl line 21

can anyone help me resolving this??

Replies are listed 'Best First'.
Re: problem in DBD::mysql
by roboticus (Chancellor) on Jan 12, 2010 at 13:40 UTC

    rajyalakshmi:

    You don't provide much in the way of detail. So:

    • Do you understand the error message?
    • If so, did you determine the location of the .so file?
    • Does the .so file exist anywhere on the machine?
    • If it's in the correct location, does it have the proper permissions?

    ...roboticus

    Sigh...

Re: problem in DBD::mysql
by Da_Lu (Acolyte) on Jan 12, 2010 at 14:16 UTC

    Looks almost like the MySQL module fails to locate the OpenSSL library (SSL_CTX_free is usually imported from there). Check if you've got it installed, and if it's the correct version.