Home: Perl Programming Help: DBI:
Can't load '/usr/local/lib/perl/5.14.2/auto/DBI/DBI.so' for module DBI



nkpalkar
New User

Aug 9, 2013, 2:26 AM


Views: 24160
Can't load '/usr/local/lib/perl/5.14.2/auto/DBI/DBI.so' for module DBI

Can't load '/usr/local/lib/perl/5.14.2/auto/DBI/DBI.so' for module DBI: /usr/local/lib/perl/5.14.2/auto/DBI/DBI.so: undefined symbol: PL_thr_key at /usr/lib/perl/5.14/DynaLoader.pm line 184.
at /usr/local/lib/perl/5.14.2/DBI.pm line 277

/usr/local/lib/perl/5.14.2/auto/DBI/DBI.so is available in the directory


(This post was edited by nkpalkar on Aug 9, 2013, 2:33 AM)


FishMonger
Veteran / Moderator

Aug 11, 2013, 12:57 PM


Views: 24118
Re: [nkpalkar] Can't load '/usr/local/lib/perl/5.14.2/auto/DBI/DBI.so' for module DBI

What method did you use to install DBI and were there any errors during the install?

Have you tried rebuilding the module from source?


(This post was edited by FishMonger on Aug 11, 2013, 12:58 PM)


nkpalkar
New User

Aug 13, 2013, 3:23 AM


Views: 24103
Re: [FishMonger] Can't load '/usr/local/lib/perl/5.14.2/auto/DBI/DBI.so' for module DBI

I have installed the DBI using " perl -MCPAN -e shell"

cpan[1]> install DBI

and there were no errors while installation.

No, we have not build the module from source.


FishMonger
Veteran / Moderator

Aug 13, 2013, 7:22 AM


Views: 24099
Re: [nkpalkar] Can't load '/usr/local/lib/perl/5.14.2/auto/DBI/DBI.so' for module DBI

Do you have multiple versions of perl installed?

The error message would indicate that you do since it refers to 2 different lib paths and version numbers ( /usr/local/lib/perl/5.14.2/ and /usr/lib/perl/5.14/).

It would appear that you installed DBI under one version but the script is pointing to the other version.


(This post was edited by FishMonger on Aug 13, 2013, 7:24 AM)