[oak perl] Setting Up Perl on a Kubuntu System

Stephen Kolupaev skolupae at sonic.net
Fri Feb 9 01:36:57 PST 2007


If I recall it right, seems to me that most Unix systems
used to emit a similar message sometimes when they failed trying to
execute a script by name on the command line.  That is, suppose the script
soandso.pl has execute permission, and it has a bang line at the top, e.g.

   #! /usr/bin/pxxl

Suppose you invoke the soandso like this:

   ./soandso.pl  arg1 arg2 arg3.

In this case the bang line does not point at an executable of any 
kind.   I seem to
remember these systems would gripe

   "soandso.pl not found", rather than
   "/usr/bin/pxxl not found".  

Could Larry's PHP system be getting in trouble this way?   Something is
misconfigured.  It isn't that cgi-bin.pl is not found. 
Instead, perhaps it is that  cgi-bin.pl is not executable because its 
interpreter
cannot be found.  

Regards,
Steve Kolupaev




Currie, Larry wrote:

>Hi Everyone,
>
> 
>
>I've been away for a while working on other projects, but now I'm back
>working on a project that uses Perl, and I'm having a bit of a problem
>getting Perl scripts to be recognized on my newly set up Kubuntu Linux
>system.  The first time I attempt to use a Perl script is from a php page,
>and in my Apache error log I see the following error message:
>
> 
>=====  I omit a few lines of Larry's original post
> 
>
>Can't locate cgi-lib.pl in @INC (@INC contains: etc/perl
>/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5
>/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
>/usr/local/lib/site_perl .) at /usr/lib/cgi-bin/cbhl/libedit.pl line 21.,
>referrer: http://library.calacademy.org/cbhl/ill/util/editlib.php
>
>======== I omit a few more lines
> 
>
>One person I spoke to seemed to think that I might need to log in as root and
>give permission for everyone to access the cgi-bin directory, but I'm
>wondering if the problem may lie elsewhere.
>
> 
>
>Any suggestions?
>
>  
>


More information about the Oakland mailing list