You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Adam Gent <ap...@hat-technologies.ltd.uk> on 2003/05/23 00:49:30 UTC
Mod_perl and Perl
Hi All,
I have two versions of perl installed on my system.
One is the one which came with the distro and one that I installed.
The distro one is in /usr/bin/perl
The one I installed is in /usr/local/bin/perl
When the scripts are run through mod_perl I want it to use the perl install,
that I installed, will it do this by looking within the script to see which
version of perl to use or do I have to configure something with the mod_perl
config?
Thanks,
Adam
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 19/05/2003
Re: Mod_perl and Perl
Posted by Stas Bekman <st...@stason.org>.
Adam Gent wrote:
> Hi,
>
> Thanks for the info, how do I rebuild mod_perl specifying the perl that I
> want to use?
Usually, by following the instructions found at perl.apache.org:
http://perl.apache.org/docs/1.0/guide/getwet.html#Installing_mod_perl_in_Three_Steps
or a longer:
http://perl.apache.org/docs/1.0/guide/install.html
In your case, replace s|perl|/usr/local/bin/perl| in the instructions.
>>>I have two versions of perl installed on my system.
>>>
>>>One is the one which came with the distro and one that I installed.
>>>
>>>The distro one is in /usr/bin/perl
>>>The one I installed is in /usr/local/bin/perl
>>>
>>>When the scripts are run through mod_perl I want it to use the perl
>>
> install,
>
>>>that I installed, will it do this by looking within the script to see
>>
> which
>
>>>version of perl to use or do I have to configure something with the
>>
> mod_perl
>
>>>config?
>>
>>No, it'll use perl you build your mod_perl with. If you want to use
>>/usr/local/bin/perl, rebuild mod_perl with it. The path to perl on the
>
> first
>
>>line of the script is always ignored.
>>
>>__________________________________________________________________
>>Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
>>http://stason.org/ mod_perl Guide ---> http://perl.apache.org
>>mailto:stas@stason.org http://use.perl.org http://apacheweek.com
>>http://modperlbook.org http://apache.org http://ticketmaster.com
>>
>>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.483 / Virus Database: 279 - Release Date: 20/05/2003
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Mod_perl and Perl
Posted by Adam Gent <ap...@hat-technologies.ltd.uk>.
Hi,
Thanks for the info, how do I rebuild mod_perl specifying the perl that I
want to use?
Thanks,
Adam
----- Original Message -----
From: "Stas Bekman" <st...@stason.org>
To: "Adam Gent" <ap...@hat-technologies.ltd.uk>
Cc: <mo...@perl.apache.org>
Sent: Friday, May 23, 2003 1:33 AM
Subject: Re: Mod_perl and Perl
> Adam Gent wrote:
> > Hi All,
> >
> > I have two versions of perl installed on my system.
> >
> > One is the one which came with the distro and one that I installed.
> >
> > The distro one is in /usr/bin/perl
> > The one I installed is in /usr/local/bin/perl
> >
> > When the scripts are run through mod_perl I want it to use the perl
install,
> > that I installed, will it do this by looking within the script to see
which
> > version of perl to use or do I have to configure something with the
mod_perl
> > config?
>
> No, it'll use perl you build your mod_perl with. If you want to use
> /usr/local/bin/perl, rebuild mod_perl with it. The path to perl on the
first
> line of the script is always ignored.
>
> __________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/ mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org http://ticketmaster.com
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 20/05/2003
Re: Mod_perl and Perl
Posted by Stas Bekman <st...@stason.org>.
Adam Gent wrote:
> Hi All,
>
> I have two versions of perl installed on my system.
>
> One is the one which came with the distro and one that I installed.
>
> The distro one is in /usr/bin/perl
> The one I installed is in /usr/local/bin/perl
>
> When the scripts are run through mod_perl I want it to use the perl install,
> that I installed, will it do this by looking within the script to see which
> version of perl to use or do I have to configure something with the mod_perl
> config?
No, it'll use perl you build your mod_perl with. If you want to use
/usr/local/bin/perl, rebuild mod_perl with it. The path to perl on the first
line of the script is always ignored.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com