Can't load DBI module

R

RC

I used REdhat Linux 7.2 for PostgreSQL 7.1.3
database

I installed DBI and DBD modules without problem.
But when I test it by

PER_DL_DEBUG=255
perl -e 'use DBI;'

I got

Can't locate loadable object for module DBI in @INC (@INC contains:
/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/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /us
r/lib/perl5/site_perl .) at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/DBI.pm line 255
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/DBI.pm line 255.

But when I run these two lines as root (super user), I don't
got above error messages.

The correct output should be look like

DynaLoader.pm loaded (/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/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .,
/usr/local/lib /lib /usr/lib)
DynaLoader::bootstrap for DBI (auto/DBI/DBI.so)

I run these two lines in a different REdhat Linux 7.2 machine.

I checked the DynaLoader.pm, DBI.pm and DBI.so files,
they are all inatalled there.
Do you think something missing with the perl dynamic loader?
Or I have missing something?

If you know how to set up this, please let me know.
I can't access USENET news groups all the time.
So, can you also Cc to me when you follow up this?
 
R

Ron Reidy

Check permissions of the DBI.pm file.
I used REdhat Linux 7.2 for PostgreSQL 7.1.3
database

I installed DBI and DBD modules without problem.
But when I test it by

PER_DL_DEBUG=255
perl -e 'use DBI;'

I got

Can't locate loadable object for module DBI in @INC (@INC contains:
/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/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/us
r/lib/perl5/site_perl .) at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/DBI.pm line 255
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/DBI.pm line 255.

But when I run these two lines as root (super user), I don't
got above error messages.

The correct output should be look like

DynaLoader.pm loaded (/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/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .,
/usr/local/lib /lib /usr/lib)
DynaLoader::bootstrap for DBI (auto/DBI/DBI.so)

I run these two lines in a different REdhat Linux 7.2 machine.

I checked the DynaLoader.pm, DBI.pm and DBI.so files,
they are all inatalled there.
Do you think something missing with the perl dynamic loader?
Or I have missing something?

If you know how to set up this, please let me know.
I can't access USENET news groups all the time.
So, can you also Cc to me when you follow up this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top