From owner-freebsd-questions Fri Feb 16 13:36:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bcfw1d.bridge.com (bcfw1d.ext.bridge.com [167.76.159.31]) by hub.freebsd.org (Postfix) with ESMTP id 184CE37B503 for ; Fri, 16 Feb 2001 13:36:22 -0800 (PST) Received: (from uucp@localhost) by bcfw1d.bridge.com (8.10.2/8.10.2) id f1GLbPQ07081; Fri, 16 Feb 2001 15:37:25 -0600 (CST) Received: from unknown(167.76.56.34) by bcfw1d.bridge.com via smap (V5.5) id xma006974; Fri, 16 Feb 01 15:37:07 -0600 Received: from mnmailhost (mnmailhost.bridge.com [167.76.155.14]) by mail1srv.bridge.com (8.8.8/8.7.3) with SMTP id PAA14296; Fri, 16 Feb 2001 15:36:02 -0600 (CST) Received: from 89-7 by mnmailhost (SMI-8.6/SMI-4.1) id QAA24177; Fri, 16 Feb 2001 16:35:59 -0500 To: freebsd-questions@FreeBSD.ORG Subject: Re: Ok CGI guru's here's an easy one for you (i hope). References: From: Tim Ayers Date: 16 Feb 2001 15:35:58 -0600 In-Reply-To: Peter Brezny's message of "Fri, 16 Feb 2001 16:05:00 -0500 (EST)" Message-ID: <66iapayp.fsf@tim.bridge.com> Lines: 34 User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "P" == Peter Brezny writes: P> I've got an old 2.2.8 freebsd system with apache 1.3.3 P> A new web site is running a search script that bombs with this error. P> Can't locate /library/cgi-lib.pl in @INC (@INC contains: P> Is it just that my perl modules are out of date and don't contain the P> cgi-lib.pl (which doesn't exist in the dir's listed above where i assume P> it's looking). P> if this is the case, do I just need to update perl entirely? if so, what P> extra precautions do i need to take (when installing the perl port) so i P> don't whack my system? cgi-lib.pl was effectively replaced by CGI.pm about 3 years ago. Updating perl will not do any good at all. P> and could i just place the cgi-lib.pl file in there manually? Find a copy of cgi-lib.pl on the web and stick it somewhere your script will find it. It's your choice, but personally I would not put it anywhere in the /usr/local/lib/perl5 tree since it would easily get lost if you ever upgrade Perl or move the website to another computer. Personally I'd put it in the same directory as the CGI script. If you have scripts in subdirectories of cgi-bin/ read about PERL5LIB in 'man perlrun'. The real solution would be to convert to using CGI.pm, but that might be a larger task than you are looking for right now. HTH and Hope you have a very nice day, :-) Tim Ayers (tayers@bridge.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message