You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Abul Rahman <ab...@gmail.com> on 2005/11/10 15:59:54 UTC

[mp2] Time::HiRes fails to load via mod_perl ?

sorry to resend this in case you all received it,

(also forgot to mention that the same cgi mentioned below runs fine
from the command line)

a.r.

> Folks,
>
> i'm a newbie to mod_perl
> actually just did my first install on...
>
> RedHat ES 4
> Apache 2.0.52
> and
> Mod_Perl 1.99
>
> i have a very simple script (the contents are irrelevant but to say it
> works) - when i add "use Time::HiRes" i get the following error in the
> apache error log...
>
> ===============================
> [Wed Nov 09 19:41:18 2005] [error] Can't load
> '/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/Time/HiRes/HiRes.so'
> for module Time::HiRes:
> /usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/Time/HiRes/HiRes.so:
> failed to map segment from shared object: Permission denied at
> /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.\n
> at /var/www/cgi-bin/env.cgi line 11\nCompilation failed in require at
> /var/www/cgi-bin/env.cgi line 11.\nBEGIN failed--compilation aborted
> at /var/www/cgi-bin/env.cgi line 11.\n
> ===============================
>
> i've seen about 300+ of these errors in the last few hours on google,
> and they all suggest (the 10% that actually seem to have an answer
> suggest) uninstalling and re-installing the module
>
> I did that already and still get the same error...
>
> please let me know if you need any further info
>
> thanks in advance,
>
> a.r.
>

Re: [mp2] Time::HiRes fails to load via mod_perl ?

Posted by Abul Rahman <ab...@gmail.com>.
yes - thanks

i had figured that out but also - as i turns out - it was the redhat setup too

in the end i ended up having to uninstall and reinstall apache,
mod_perl *and* upgrade CGI.pm modules to get everything working
properly

thanks for everyone's help

a.r.

On 11/11/05, Tom Schindl <to...@gmx.at> wrote:
> Yes because it does exists any more. All modules have been moved to
> Apache2-Namespace. Take a look into your httpd.conf to see if if this
> module is referenced somewhere and remove this line.
>
> Maybe it's in an PerlRequire remove it there also.
>
> http://perl.apache.org/docs/2.0/rename.html
>
> Tom
>
>
> Abul Rahman wrote:
> > the mod_perl 1.99 and the perl was 'factory' install from redhat
> >
> > i removed 1.99 and installed 2.02 like you said
> >
> > now when i try to start the webserver it complains it cannot find Apache.pm
> >
> > a.r.
> >
> > On 11/10/05, Perrin Harkins <pe...@elem.com> wrote:
> >
> >>On Thu, 2005-11-10 at 11:27 -0500, Abul Rahman wrote:
> >>
> >>>one more quick question - i've only had one version of perl (5.8.5) on this box
> >>>
> >>>how would the module have compiled with a different version?
> >>
> >>Well, did you compile mod_perl yourself?  It sounds like you installed
> >>someone else's binary.
> >>
> >>
> >>>also - is there any command i can type to see what version of perl the
> >>>mod_perl was compiled with?
> >>
> >>Take a look at this page for help on diagnostics:
> >>http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
> >>
> >>- Perrin
> >>
> >>
> >
> >
> >
>
>
>
>

Re: [mp2] Time::HiRes fails to load via mod_perl ?

Posted by Tom Schindl <to...@gmx.at>.
Yes because it does exists any more. All modules have been moved to
Apache2-Namespace. Take a look into your httpd.conf to see if if this
module is referenced somewhere and remove this line.

Maybe it's in an PerlRequire remove it there also.

http://perl.apache.org/docs/2.0/rename.html

Tom


Abul Rahman wrote:
> the mod_perl 1.99 and the perl was 'factory' install from redhat
> 
> i removed 1.99 and installed 2.02 like you said
> 
> now when i try to start the webserver it complains it cannot find Apache.pm
> 
> a.r.
> 
> On 11/10/05, Perrin Harkins <pe...@elem.com> wrote:
> 
>>On Thu, 2005-11-10 at 11:27 -0500, Abul Rahman wrote:
>>
>>>one more quick question - i've only had one version of perl (5.8.5) on this box
>>>
>>>how would the module have compiled with a different version?
>>
>>Well, did you compile mod_perl yourself?  It sounds like you installed
>>someone else's binary.
>>
>>
>>>also - is there any command i can type to see what version of perl the
>>>mod_perl was compiled with?
>>
>>Take a look at this page for help on diagnostics:
>>http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
>>
>>- Perrin
>>
>>
> 
> 
> 


Re: [mp2] Time::HiRes fails to load via mod_perl ?

Posted by Abul Rahman <ab...@gmail.com>.
the mod_perl 1.99 and the perl was 'factory' install from redhat

i removed 1.99 and installed 2.02 like you said

now when i try to start the webserver it complains it cannot find Apache.pm

a.r.

On 11/10/05, Perrin Harkins <pe...@elem.com> wrote:
> On Thu, 2005-11-10 at 11:27 -0500, Abul Rahman wrote:
> > one more quick question - i've only had one version of perl (5.8.5) on this box
> >
> > how would the module have compiled with a different version?
>
> Well, did you compile mod_perl yourself?  It sounds like you installed
> someone else's binary.
>
> > also - is there any command i can type to see what version of perl the
> > mod_perl was compiled with?
>
> Take a look at this page for help on diagnostics:
> http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
>
> - Perrin
>
>

Re: [mp2] Time::HiRes fails to load via mod_perl ?

Posted by Perrin Harkins <pe...@elem.com>.
On Thu, 2005-11-10 at 11:27 -0500, Abul Rahman wrote:
> one more quick question - i've only had one version of perl (5.8.5) on this box
> 
> how would the module have compiled with a different version?

Well, did you compile mod_perl yourself?  It sounds like you installed
someone else's binary.

> also - is there any command i can type to see what version of perl the
> mod_perl was compiled with?

Take a look at this page for help on diagnostics:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

- Perrin


Re: [mp2] Time::HiRes fails to load via mod_perl ?

Posted by Abul Rahman <ab...@gmail.com>.
one more quick question - i've only had one version of perl (5.8.5) on this box

how would the module have compiled with a different version?

also - is there any command i can type to see what version of perl the
mod_perl was compiled with?

a.r.

On 11/10/05, Perrin Harkins <pe...@elem.com> wrote:
> On Thu, 2005-11-10 at 09:59 -0500, Abul Rahman wrote:
> > >
> > > RedHat ES 4
> > > Apache 2.0.52
> > > and
> > > Mod_Perl 1.99
>
> Upgrade that, please.  2.0.2 is the current version.
>
> > > i have a very simple script (the contents are irrelevant but to say it
> > > works) - when i add "use Time::HiRes" i get the following error in the
> > > apache error log...
> > >
> > > ===============================
> > > [Wed Nov 09 19:41:18 2005] [error] Can't load
> > > '/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/Time/HiRes/HiRes.so'
> > > for module Time::HiRes:
> > > /usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/Time/HiRes/HiRes.so:
> > > failed to map segment from shared object: Permission denied at
> > > /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.\n
> > > at /var/www/cgi-bin/env.cgi line 11\nCompilation failed in require at
> > > /var/www/cgi-bin/env.cgi line 11.\nBEGIN failed--compilation aborted
> > > at /var/www/cgi-bin/env.cgi line 11.\n
> > > ===============================
>
> Looks to me like you compiled mod_perl with a different perl than the
> one you compiled this module with.  They have to be the same one.
>
> - Perrin
>
>

Re: [mp2] Time::HiRes fails to load via mod_perl ?

Posted by Abul Rahman <ab...@gmail.com>.
thanks - will try - i don't think redhat has an rpm for 2.02 so will
pro'lly need to download and make from apache

a.r.

On 11/10/05, Perrin Harkins <pe...@elem.com> wrote:
> On Thu, 2005-11-10 at 09:59 -0500, Abul Rahman wrote:
> > >
> > > RedHat ES 4
> > > Apache 2.0.52
> > > and
> > > Mod_Perl 1.99
>
> Upgrade that, please.  2.0.2 is the current version.
>
> > > i have a very simple script (the contents are irrelevant but to say it
> > > works) - when i add "use Time::HiRes" i get the following error in the
> > > apache error log...
> > >
> > > ===============================
> > > [Wed Nov 09 19:41:18 2005] [error] Can't load
> > > '/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/Time/HiRes/HiRes.so'
> > > for module Time::HiRes:
> > > /usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/Time/HiRes/HiRes.so:
> > > failed to map segment from shared object: Permission denied at
> > > /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.\n
> > > at /var/www/cgi-bin/env.cgi line 11\nCompilation failed in require at
> > > /var/www/cgi-bin/env.cgi line 11.\nBEGIN failed--compilation aborted
> > > at /var/www/cgi-bin/env.cgi line 11.\n
> > > ===============================
>
> Looks to me like you compiled mod_perl with a different perl than the
> one you compiled this module with.  They have to be the same one.
>
> - Perrin
>
>

Re: [mp2] Time::HiRes fails to load via mod_perl ?

Posted by Perrin Harkins <pe...@elem.com>.
On Thu, 2005-11-10 at 09:59 -0500, Abul Rahman wrote:
> >
> > RedHat ES 4
> > Apache 2.0.52
> > and
> > Mod_Perl 1.99

Upgrade that, please.  2.0.2 is the current version.

> > i have a very simple script (the contents are irrelevant but to say it
> > works) - when i add "use Time::HiRes" i get the following error in the
> > apache error log...
> >
> > ===============================
> > [Wed Nov 09 19:41:18 2005] [error] Can't load
> > '/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/Time/HiRes/HiRes.so'
> > for module Time::HiRes:
> > /usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/Time/HiRes/HiRes.so:
> > failed to map segment from shared object: Permission denied at
> > /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.\n
> > at /var/www/cgi-bin/env.cgi line 11\nCompilation failed in require at
> > /var/www/cgi-bin/env.cgi line 11.\nBEGIN failed--compilation aborted
> > at /var/www/cgi-bin/env.cgi line 11.\n
> > ===============================

Looks to me like you compiled mod_perl with a different perl than the
one you compiled this module with.  They have to be the same one.

- Perrin