[oak perl] Setting Up Perl on a Kubuntu System

Currie, Larry lcurrie at calacademy.org
Fri Feb 9 11:08:31 PST 2007


Hi Stephen,

I worked out what my problem was.  I think it was a case of not having placed
the cgi-bin.pl file and my other Perl scripts in the directory specified by
my Apache .conf files.

Larry

Lawrence Currie
Academy Librarian
California Academy of Sciences
875 Howard St.
San Francisco, CA 94103
(415) 321-8038
fax (415) 321-8633
 

-----Original Message-----
From: oakland-bounces+lcurrie=calacademy.org at pm.org
[mailto:oakland-bounces+lcurrie=calacademy.org at pm.org] On Behalf Of Stephen
Kolupaev
Sent: Friday, February 09, 2007 1:37 AM
To: oakland at pm.org
Subject: Re: [oak perl] Setting Up Perl on a Kubuntu System

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?
>
>  
>
_______________________________________________
Oakland mailing list
Oakland at pm.org
http://mail.pm.org/mailman/listinfo/oakland


More information about the Oakland mailing list