Most Perl modules have to be able to compile on a wide variety of C
compilers.  As a result, 'unused variables' may occur; they are not normally
a problem.

Make sure your account has at least read and execute permission on all
directories leading up to DBI???.so.  You also need to be able to read that
file.

If you installed Perl from a RPM or it came with the OS install, you
probably should rebuild Perl with the currently installed compiler and
libraries then install the modules you want.  That frequently resolves
problems of this sort.
--
Mac :})
** I normally forward private database questions to the DBI mail lists. **
Give a hobbit a fish and he'll eat fish for a day.
Give a hobbit a ring and he'll eat fish for an age.
----- Original Message -----
From: "Alan Bailey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 1:25 PM
Subject: installing with perl 5.6.0 on redhat 7.0


> Anyone have any stories of installing DBI-1.14 with perl 5.6.0 on redhat
> 7.0?
>
> When I installed DBI, I got a bunch of weird errors about a variable
> Perl__notused, which obviously made me ignore it the first time around:
>
> DBI.c: In function `XS_DBD_____common_DESTROY':
> DBI.c:2644: warning: unused variable `Perl___notused'
>
> The 'make' seemed to run fine except for those warnings.  Would that have
> something to do with it?
>
> I'm getting errors like this when I run a simple script that does a
> 'use DBI;':
>
> padmin2|abailey % ./perltest
> Can't locate loadable object for module DBI in @INC (@INC contains:
> /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
> /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
> /usr/lib/perl5/site_perl .) at
> /usr/lib/perl5/site_perl/5.6.0/i386-linux/DBI.pm line 182
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.6.0/i386-linux/DBI.pm line 182.
> Compilation failed in require at ./perltest line 4.
> BEGIN failed--compilation aborted at ./perltest line 4.
>
> Those errors also come up when I try installing Msql-Mysql-modules, but
> they are the exact same, so I won't copy them.
>
> Specifically, at line 182 of DBI.pm, which is where the error is found,
> the following comment is placed:
>
> # If you get an error here like "Can't find loadable object ..."
> # then you haven't installed the DBI correctly. Read the README
> # then install it again.
>
> I did reinstall it and I have read the README.
>
> Thanks for any help you could possibly give, hopefully in the next hour.
> :)


Reply via email to