Skip site navigation (1)Skip section navigation (2)
Date:      19 Jan 2003 23:46:51 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        David Banning <david@skytracker.ca>
Cc:        questions@FreeBSD.ORG
Subject:   Re: perl question about @INC
Message-ID:  <1043038010.14743.41.camel@shumai.marcuscom.com>
In-Reply-To: <20030119233225.A65201@skytrackercanada.com>
References:  <20030119233225.A65201@skytrackercanada.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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




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