From owner-freebsd-questions Wed May 15 5:28:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web13609.mail.yahoo.com (web13609.mail.yahoo.com [216.136.174.9]) by hub.freebsd.org (Postfix) with SMTP id 5C2F837B406 for ; Wed, 15 May 2002 05:28:16 -0700 (PDT) Message-ID: <20020515122816.59761.qmail@web13609.mail.yahoo.com> Received: from [155.246.1.109] by web13609.mail.yahoo.com via HTTP; Wed, 15 May 2002 05:28:16 PDT Date: Wed, 15 May 2002 05:28:16 -0700 (PDT) From: Roberto Armenteros Subject: Help compiling a perl program - some problems related to MD5.pm To: freebsd-questions@FreeBSD.ORG Cc: rarmente1@yahoo.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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