On Mon, 6 May 2002 13:53:51 +0930 (CST), Wilkinson,Alex wrote:

>I have just installed the DBI.pm module manually.
>
>However, Perl cannot seem to find the module.
>
>eg.
>
>Can't locate DBI.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-solaris 
>/usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris /usr/perl5/site_perl/5.005 
>.) at ./run-all-tests line 36.
>BEGIN failed--compilation aborted at ./run-all-tests line 36.
>
>Question: How can I add something to my path for Perl to check for its modules ?
>          I have installed the Perl Module in:
>         /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/DBI.pm
>
>/usr/local/bin/perl5.6.1 -v
>
>This is perl, v5.6.1 built for sun4-solaris

Wow, hold it! You @INC paths most certainly point towards the fact that
the script is running on a 5.005 perl. Yet *this* perl says it's 5.6.1.

Note that perl5.005 and 5.6 are (most likely) not binary compatible, so
you can't just use the same installed module on both versions of Perl.
If you want to use DBI for both, you'll have to install DBI on both, as
you would have to do for any other XS based module.

-- 
        Bart.

Reply via email to