euglug.org

[Eug-lug] Perl and Apache RE: Wiki

작성자

카테고리:



Jim BeardTue Dec 21 12:51:53 PST 2004

On Dec 21, 2004, at 11:50 AM, Rob Hudson wrote:

> On 20041221.1129, Po Petz said ...
>
>> On Tue, 21 Dec 2004, Jim Beard wrote:
>>
>>> Only problem is my Perl and Apache config seems a bit boinked.
>>
>> Describe the perl and apache.  Are they redhat 9 defaults?  Did you 
>> update
>> them with some other rpms?  Rebuilt from srpms?  Built from source?
>>

RPMs.  I think its pretty much a default install.  I haven't really 
updated anything.

>>> I added the '/usr/lib/perl5/5.8.0/CGI.pm' line myself to the path in 
>>> a
>>> config file.  Basically it seems like I do have the CGI module, but 
>>> it's
>>> not getting found.  Does anyone have any idea what might be causing 
>>> this??
>>
>> Wild stab: Maybe you have a couple of different versions of perl 
>> running,
>> the perl that the testenv script is runnning has a different libpath 
>> than
>> your perl5.8.0.
>
> Good stab, I think.  Check the main page of the Perl script for Twiki.
> At the top is usually the line like:
> #!/usr/bin/perl
>
> If you then run: perl -v
> you'll see what version it is.
>

5.8.0.   The only executable I see on the system is /usr/bin/perl and 
/usr/bin/perl5.8.0 both of which are 5.8.0 versions, same file size, 
same creation date.  If I run perl -V to see patches etc, it shows the 
@INC variable which is as follows:

   @INC:
     /usr/lib/perl5/5.8.0/i386-linux-thread-multi
     /usr/lib/perl5/5.8.0
     /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
     /usr/lib/perl5/site_perl/5.8.0
     /usr/lib/perl5/site_perl
     /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
     /usr/lib/perl5/vendor_perl/5.8.0
     /usr/lib/perl5/vendor_perl
     /usr/lib/perl5/5.8.0/i386-linux-thread-multi
     /usr/lib/perl5/5.8.0
     .


In /usr/lib/perl5/5.8.0 there exists a file called CGI.pm, and 
CGI.pm.newcgi.  I created the CGI.pm file from the .newcgi file in 
hopes that it would see it and execute.  Is this my problem?  I had the 
same issue with CGI::Carp.pm and it went away when I made the copy from 
.newcgi to .pm...

It looks to me like it should work, but doesn't.  This is one of my 
main complaints regarding computers :P

Thanks.

> You may also have a /usr/local/bin/perl if it was installed from source
> and not via your package manager.
>
> I've had this problem in the past where CPAN updated my Perl and put it
> in /usr/local/bin but my perl script referenced /usr/bin/perl and I had
> some problems not finding the right modules.
>
> -Rob
> _______________________________________________
> EUGLUG mailing list
> euglug at euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
>
>
Jim Beard
counterclaim.com, Inc
http://www.counterclaim.com
http://openefm.sourceforge.net
(800) 264-8145