From owner-freebsd-isp@FreeBSD.ORG Fri Feb 27 13:36:10 2004 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0933D16A4CF for ; Fri, 27 Feb 2004 13:36:10 -0800 (PST) Received: from mg3.xecu.net (mg3.xecu.net [216.127.136.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id B23C843D2F for ; Fri, 27 Feb 2004 13:36:09 -0800 (PST) (envelope-from andy@xecu.net) Received: by mg3.xecu.net (Postfix, from userid 1003) id 8FA193DAEDF; Fri, 27 Feb 2004 16:36:08 -0500 (EST) Received: from thunder.xecu.net (thunder.xecu.net [216.127.136.208]) by mg3.xecu.net (Postfix) with ESMTP id 5C4A73DAE8C; Fri, 27 Feb 2004 16:36:08 -0500 (EST) Date: Fri, 27 Feb 2004 16:36:05 -0500 (EST) From: Andy Dills To: Lewis Watson In-Reply-To: <07aa01c3fd73$ce2e40f0$df0a0a0a@visionsix.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-isp@FreeBSD.ORG Subject: Re: FreeBSD 4.9 and perl LWP... X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2004 21:36:10 -0000 On Fri, 27 Feb 2004, Lewis Watson wrote: > Hi folks, > I have a client trying to run a perl script on our web server. FreeBSD 4.9 > w/ Apache 1.3.29/ modphp/ SSL. > > They are getting this error in the httpd errorlog .... > > Can't locate LWP/Simple.pm in @INC (@INC contains: > /usr/local/lib/perl5/site_perl/5.005/i386-freebsd > /usr/local/lib/perl5/site_perl/5.005 > /usr/local/lib/perl5/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) > > All I could find by googling is that this perl module is generally > supposed to be installed by default and there was another post where two > people were troubleshooting Perl putting modules in wrong places.. > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&th=c30fb8d16921fc3b&rnum=7 > > Can someone provide some insight on how to resolve this problem? I see you solved your problem, but I'll offer you a bit of empowering wisdom. Perl doesn't ship with a ton of modules that are commonly used. However, adding them can be super trivial. For instance, you could have accomplished this entire task by doing: perl -MCPAN -e shell And in the shell: install LWP It's similar in concept to /usr/ports, except that it doesn't keep the metadata on your filesystem. Good luck, Andy --- Andy Dills Xecunet, Inc. www.xecu.net 301-682-9972 ---