From owner-freebsd-questions Sun Jan 19 20:47: 4 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDF6937B401 for ; Sun, 19 Jan 2003 20:47:02 -0800 (PST) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5933343EB2 for ; Sun, 19 Jan 2003 20:46:58 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.12.6/8.12.6) with ESMTP id h0K4joDx085548; Sun, 19 Jan 2003 23:45:50 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: perl question about @INC From: Joe Marcus Clarke To: David Banning Cc: questions@FreeBSD.ORG In-Reply-To: <20030119233225.A65201@skytrackercanada.com> References: <20030119233225.A65201@skytrackercanada.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ypS3KBZzHO2yDKYQcDS0" Organization: MarcusCom, Inc. Message-Id: <1043038010.14743.41.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 19 Jan 2003 23:46:51 -0500 X-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,IN_REP_TO,NOSPAM_INC,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT, REFERENCES,SPAM_PHRASE_00_01,SUPERLONG_LINE, TO_BE_REMOVED_REPLY version=2.43 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 --=-ypS3KBZzHO2yDKYQcDS0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2003-01-19 at 23:32, David Banning wrote: > I got the error running a perl script; >=20 > Can't locate Getopt/Simple.pm in @INC (@INC contains: /usr/local/lib/perl= 5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/= libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at ./adddir.pl line 28= . > BEGIN failed--compilation aborted at ./adddir.pl line 28. >=20 > su-2.03# locate Simple.pm > /usr/local/lib/perl5/site_perl/5.005/LWP/Simple.pm > =20 > Where is the @INC alluded to in the error message and how would > I go about adding the real location of the file it is seeking? Usually scripts use Getopt::Std or Getopt::Long for command line option parsing. However, there is a third party Getopt::Simple: http://search.cpan.org/author/RSAVAGE/Getopt-Simple-1.45/Simple.pm There doesn't appear to be a port of this module to FreeBSD, however.=20 You'd have to download and build the module. Joe >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-ypS3KBZzHO2yDKYQcDS0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+K386b2iPiv4Uz4cRAnZRAJ42kVm+j3+smjlZmpDeo8wr/hWrtACePxXB 6jqvhLhaRMP1QJvffYJ2jWs= =/KTu -----END PGP SIGNATURE----- --=-ypS3KBZzHO2yDKYQcDS0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message