|
Posted by Mark Clements on May 23, 2005, 12:39 pm
Please log in for more thread options
sravi wrote:
> I need the perl module Digest::Nilsimsa. Since I don't have root
> permissions, I have to install this locally. I used the following
> commands
>
> perl Makefile.PL PREFIX=/home/sravi/perl
> make
> make test
> make install
>
> All the commands where executed successfully, but the following
> program is giving the error
> "Can't locate Digest/Nilsimsa.pm in @INC (@INC contains:
> /home/sravi/perl /home/sravi/perl
> /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5
> /usr/local/lib/perl5/site_perl/sun4-solaris
> /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/sun4-solaris .) at
> ./tmp.pl line 5.
> BEGIN failed--compilation aborted at ./tmp.pl line 5."
>
> #!/usr/local/bin/perl -w
>
> use lib "/home/sravi/perl";
>
> use Digest::Nilsimsa;
>
<snip>
That is a seriously ancient version of Perl you have there. You may
like to ask your admin to do something about it.
Assuming you have read
http://www.cpan.org/misc/cpan-faq.html#How_use_private
or similar, you can try a few things.
does
find /home/sravi/perl -print
give you the result you expect?
What happens if you set the use lib line to eg
use lib qw(/home/sravi/perl/perl5/site_perl/5.00404);
or wherever it is the module has actually been installed? You may have
to toy with this.
Mark
|