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

Hello, i have a strange problem with spamassassin related to the Perl SQL Module. Everything worked like a charm until i decided to install a new Perl Module which was required for an additional spamassassin module.. and now i'm getting this when running spamassassin in debug mode:
Jun 2 13:03:41.779 [2653] warn: config: failed to load user (xxx@xxx. +de) scores from SQL database: install_driver(mysql) failed: Can't loc +ate DBD/mysql.pm: lib/DBD/mysql.pm: Permission denied at (eval 1204) +line 3, <GEN17> line 2. Jun 2 13:03:41.780 [2653] warn: Jun 2 13:03:41.780 [2653] warn: at /usr/share/perl5/Mail/SpamAssassi +n/Conf/SQL.pm line 138. Jun 2 13:03:41.780 [2653] warn: spamd: service unavailable: Error fet +ching user preferences via SQL
I installed the required Perl Module with these commands:
cpan cpan App::cpanminus cpanm Mail::DKIM
Any Idea what happened ? The System is Debian Jessie (64Bit) Thank you! Greetings bennY

Replies are listed 'Best First'.
Re: dbd-mysql permission denied
by Anonymous Monk on Jun 02, 2015 at 22:56 UTC

    ?where is   lib/DBD/mysql.pm located?

    ?where is   auto/DBD/mysql/mysql.so located?

    ?what do you get when you run

    ls -loanh ...auto/DBD/mysql/mysql.so ldd ...auto/DBD/mysql/mysql.so
Re: dbd-mysql permission denied
by locked_user sundialsvc4 (Abbot) on Jun 02, 2015 at 12:02 UTC

    Start by verifying that the library-file exists, and that it is accessible for r-x access by the world.   Then, be sure that you have run the /sbin/ldconfig command, which will require Root privileges, to update the loader’s library lookup cache.