You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tracy12 <j_...@yahoo.com> on 2007/08/17 04:56:08 UTC

All about CGI.pm

Hi,

Shouldn't mod_perl 2.0.X contain the CGI.pm, reason for this question is we
got
fedora core 5 running on our developement machines,

in our mod_perl handler, we got the following, and works fine, we did not
install CGI.pm seperately,

use CGI;
......
.....
...
 $myParam = $cgi->param('param');


When we ran the same script on other Linux machine, the param value is not
showing, it looks to me from the observation that CGI.pm has not been
installed, but I was under the impression that mod_perl 2.0... by default
have CGI.pm installed, but doesnt look like that,

How can we install this seperately from where should we download this?
Shouldnt it come by default?

Thanks






-- 
View this message in context: http://www.nabble.com/All-about-CGI.pm-tf4283429.html#a12193231
Sent from the mod_perl - General mailing list archive at Nabble.com.


Re: All about CGI.pm

Posted by Tracy12 <j_...@yahoo.com>.
Hi,

Hope you are refering to this.

http://search.cpan.org/dist/CGI.pm/CGI.pm#FETCHING_THE_NAMES_OF_ALL_THE_PARAMETERS_PASSED_TO_YOUR_SCRIPT:

Let me know if this is not the URL?


Sean Davis-3 wrote:
> 
> Tracy12 wrote:
>> How can we install this seperately from where should we download this?
> 
> CGI is available from CPAN.
> 
> Sean
> 
> 

-- 
View this message in context: http://www.nabble.com/All-about-CGI.pm-tf4283429.html#a12228313
Sent from the mod_perl - General mailing list archive at Nabble.com.


Re: All about CGI.pm

Posted by Sean Davis <sd...@mail.nih.gov>.
Tracy12 wrote:
> How can we install this seperately from where should we download this?

CGI is available from CPAN.

Sean

Re: All about CGI.pm

Posted by Perrin Harkins <pe...@elem.com>.
On 8/19/07, Tracy12 <j_...@yahoo.com> wrote:
>
> Can you let me know for mod_perl compatibility what is the minimum CGI.pm
> version we should have?

The most recent mod_perl-related change was in 3.20, but you really
should just grab the latest one.

The current list of changes is here:
http://search.cpan.org/dist/CGI.pm/Changes

- Perrin

Re: All about CGI.pm

Posted by Tracy12 <j_...@yahoo.com>.
Can you let me know for mod_perl compatibility what is the minimum CGI.pm
version we should have?

Perrin Harkins wrote:
> 
> On 8/16/07, Tracy12 <j_...@yahoo.com> wrote:
>> When we ran the same script on other Linux machine, the param value is
>> not
>> showing, it looks to me from the observation that CGI.pm has not been
>> installed, but I was under the impression that mod_perl 2.0
> 
> CGI.pm is not bundled with mod_perl.  It is bundled with Perl.  You
> should always make sure you have the latest version of it, since some
> releases are important for security and for mod_perl compatibility.
> You can get it from CPAN.
> 
> - Perrin
> 
> 

-- 
View this message in context: http://www.nabble.com/All-about-CGI.pm-tf4283429.html#a12228156
Sent from the mod_perl - General mailing list archive at Nabble.com.


Re: Perl 5.8.8.

Posted by Perrin Harkins <pe...@elem.com>.
On 8/20/07, JónJósef Bjarnason <jo...@it-cons.com> wrote:
> Apache's @INC

Apache doesn't have an @INC because Apache doesn't have perl.  It
looks like this is mod_perl's @INC.  Did you print this out from a
script or module running through mod_perl?

To change which perl mod_perl is using, you just rebuild it with the
right one, as shown in previous mail.

- Perrin

Re: Perl 5.8.8.

Posted by Perrin Harkins <pe...@elem.com>.
On 8/20/07, JónJósef Bjarnason <jo...@it-cons.com> wrote:
> But it's not mod_perl I am conserned with, that seems to sitt nicely at
> 5.8.8.
> its Apache, it looks into the old lib directories ../perl/5.8.7 instead
> of ../perl5/5.8.8
> and I can't find where to change that in Apache.

Can you be more specific?  What exactly is the program you're trying
to run that is finding the wrong perl?

- Perrin

Re: Perl 5.8.8.

Posted by Perrin Harkins <pe...@elem.com>.
On 8/20/07, JónJósef Bjarnason <jo...@it-cons.com> wrote:
> Does anyone know how --with-perl option works ?
> or how to compile apache with perl 5.8.8 if this is not the correct way.

The page you're looking at is not related to mod_perl.  It is for
configuring the command-line utilities that come with apache.  Those
are affected by the --with-perl option.  If you don't plan to use
them, you can totally ignore this.

To build mod_perl with a specific perl, just call the Makefile.PL with it:
/opt/my/special/perl Makefile.PL

- Perrin

Perl 5.8.8.

Posted by JónJósef Bjarnason <jo...@it-cons.com>.
on http://httpd.apache.org/docs/2.0/install.html
the following section can be found:

Perl 5 [OPTIONAL]
For some of the support scripts like apxs or dbmmanage (which are written
in Perl) the Perl 5 interpreter is required (versions 5.003 or newer are
sufficient). If you have multiple Perl interpreters (for example, a
systemwide install of Perl 4, and your own install of Perl 5), you are
advised to use the --with-perl option (see below) to make sure the
correct one is used by configure. If no Perl 5 interpreter is found by
the configure script, you will not be able to use the affected support
scripts. Of course, you will still be able to build and use Apache 2.0.

There is however no section below explaining the --with-perl option.
I am trying to upgrade perl 5.8.7 to 5.8.8 but apache always takes 5.8.7.
everywhere else my system uses perl 5.8.8

Does anyone know how --with-perl option works ?
or how to compile apache with perl 5.8.8 if this is not the correct way.

Thanks
Jon

Re: All about CGI.pm

Posted by Perrin Harkins <pe...@elem.com>.
On 8/16/07, Tracy12 <j_...@yahoo.com> wrote:
> When we ran the same script on other Linux machine, the param value is not
> showing, it looks to me from the observation that CGI.pm has not been
> installed, but I was under the impression that mod_perl 2.0

CGI.pm is not bundled with mod_perl.  It is bundled with Perl.  You
should always make sure you have the latest version of it, since some
releases are important for security and for mod_perl compatibility.
You can get it from CPAN.

- Perrin