in reply to Bus Error (core dumped)

Just to add further, if I try to find the module version with Perl v5.8.8,it again shows core dump error.

With Perl v5.6.2
$/usr/bin/perl -MDBD::mysql -e 'print "$DBD::mysql::VERSION\n"' 4.005
With Perl v5.6.2
$/usr/bin/perl -MDBD::mysql -e 'print "$DBD::mysql::VERSION\n"' Bus Error

Replies are listed 'Best First'.
Re^2: Bus Error (core dumped)
by Corion (Patriarch) on Sep 07, 2009 at 12:06 UTC

    The "Bus Error" means that likely something is wrong with the compiled parts of Perl. A most likely candidate is a mismatch between the Perl version and the version for which the extension DBD::mysql was compiled, or the version of DBD::mysql and the version of the MySQL client libraries against which the DBD was compiled. There is little we can do from afar - your best venue is to look at what (you) changed within the system and how you installed DBD::mysql into the 5.6.2 Perl.

    A common, easy to detect pitfall would be if you copied the DBD::mysql driver for Perl 5.8.x to the directories for Perl 5.6.2 - that cannot work.

    This might also have happened if you recompiled and reinstalled the driver and have shared extension directories between 5.8.x and 5.6.x.

    Look at @INC for both Perls:

    perl -v perl -le 'print for @INC';