Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2002 05:28:16 -0700 (PDT)
From:      Roberto Armenteros <rarmente@yahoo.com>
To:        freebsd-questions@FreeBSD.ORG
Cc:        rarmente1@yahoo.com
Subject:   Help compiling a perl program - some problems related to MD5.pm
Message-ID:  <20020515122816.59761.qmail@web13609.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
I am trying to run a perl program to check for file
checksums and I havent been able to run it in my
computer. "The program runs perfectly at another
computer running netbsd." First time i tried to run
the program this was the error i got:
bash-2.05a$ perl checksum.pl /etc
Can't locate MD5.pm in @INC (@INC contains:
/usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at checksum.pl
line 1.
BEGIN failed--compilation aborted at checksum.pl line
1.

What i understand from here is that it cant find
MD5.pm, then i run the comand locate MD5.pm and I
found it in the following directory:
bash-2.05a$ locate MD5
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Digest/MD5.pm

My newbie mind suggested to move the MD5.pm files to
one of those folders specified on the first error "in
&INC" and then when i tried to run the program the
error was a different one, which is:

bash-2.05a$ perl checksum.pl /etc
Can't locate object method "new" via package "MD5" at
checksum.pl line 3. In other words, it does excecute
the following marked line in the code:

use MD5;
require 'find.pl';
$md5 = new MD5; ## <----- error here

Please, what's going on here!!! The code runs
perfectly in another computer. Dont i have MD5 support
properly installed? Does the fact that i found MD5.pm
in the following location mean that it is properly
installed?
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/Digest/MD5.pm

I am quite sure that the package p5-Digest-MD5.2.16 is
installed because it appears so when i run sysinstall

If u need anything else, please let me know

I would really appreciate any help i receive...

   Thanks a lot... Rob...



__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020515122816.59761.qmail>