You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Matthew Jarrett <ma...@summit.net.au> on 2005/01/22 21:12:32 UTC

Undefined subroutine &HTML::Embperl::handler called

Hi Guys,

I am new to this list, and am trying to solve a problem over the past 48
hours, without any luck.

I am running Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7e
mod_perl/1.29 PHP/4.3.10 with Embperl-2.0rc2 installed on FreeBSD 5.3-Stable
as at 20/01/2005.

I am having a problem with getting Embperl2 to work correctly with Apache,
as I am getting the below error returned when I open up a .epl page from the
web server.

[Sun Jan 23 04:29:45 2005] [error] Undefined subroutine
&HTML::Embperl::handler called.\n

I was getting the below error:

[Sat Jan 22 19:45:22 2005] [error] Can't locate HTML/Embperl.pm in @INC
(@INC contains: /usr/local/lib/perl5/site_perl/5.8.5/
i386-freebsd-64int /usr/local/lib/perl5/site_perl/5.8.5/mach
/usr/local/lib/perl5/site_perl/5.8.5 /usr/local/lib/perl5/site_p
erl/5.8.3 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.5/BSDPAN
/usr/local/lib/perl5/5.8.5/mach /usr/local/lib/per
l5/5.8.5 . /usr/local/ /usr/local/lib/perl) at (eval 7) line 3.\n
[Sat Jan 22 19:45:22 2005] [error] Undefined subroutine
&HTML::Embperl::handler called.\n

until I copied Embperl.pm from /usr/local/lib/perl5/site_perl/5.8.5/mach/ to
/usr/local/lib/perl5/site_perl/5.8.5/mach/HTML and this got rid of the below
error

[Sat Jan 22 19:45:22 2005] [error] Can't locate HTML/Embperl.pm in @INC
(@INC contains: /usr/local/lib/perl5/site_perl/5.8.5/
i386-freebsd-64int /usr/local/lib/perl5/site_perl/5.8.5/mach
/usr/local/lib/perl5/site_perl/5.8.5 /usr/local/lib/perl5/site_p
erl/5.8.3 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.5/BSDPAN
/usr/local/lib/perl5/5.8.5/mach /usr/local/lib/per
l5/5.8.5 . /usr/local/ /usr/local/lib/perl) at (eval 7) line 3.\n

but left the undefined subroutine message.

I have Apache set with the following file handlers:

 <Files *.epl>
    SetHandler  perl-script
    PerlHandler HTML::Embperl
    Options     ExecCGI
    ExpiresActive On
    ExpiresDefault M0
 </Files>

Also, I have found that p5-HTML-Embperl from the FreeBSD ports collection
which is version 1.3.6 appears to crap itself continuously if I try and
install that as well, if that is any help.

Any help would be _greatly_ appreciated.

Thanks in advance,
Matthew.



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


RE: Undefined subroutine &HTML::Embperl::handler called

Posted by Matthew Jarrett <ma...@summit.net.au>.
Thanks Gus, appreciate your help. Am new to this stuff, usually one of the
other guys takes care of this, but he has left us now.

Shall let you know how I get on.

Cheers,
Matthew.

-----Original Message-----
From: Angus Lees [mailto:gus@inodes.org] 
Sent: Sunday, 23 January 2005 9:23 AM
To: Matthew Jarrett
Cc: embperl@perl.apache.org
Subject: Re: Undefined subroutine &HTML::Embperl::handler called


At Sun, 23 Jan 2005 07:12:32 +1100, Matthew Jarrett wrote:
> I am running Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7e 
> mod_perl/1.29 PHP/4.3.10 with Embperl-2.0rc2 installed on FreeBSD 
> 5.3-Stable as at 20/01/2005.
> 
> [Sun Jan 23 04:29:45 2005] [error] Undefined subroutine 
> &HTML::Embperl::handler called.\n

HTML::Embperl was the older (1.3.x) name, Embperl 2 uses simply "Embperl".

Have a read of Embperl::Config, in particular the bits regarding apache
"LoadModule" directives and other apache configuration.

-- 
 - Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Undefined subroutine &HTML::Embperl::handler called

Posted by Angus Lees <gu...@inodes.org>.
At Sun, 23 Jan 2005 07:12:32 +1100, Matthew Jarrett wrote:
> I am running Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7e
> mod_perl/1.29 PHP/4.3.10 with Embperl-2.0rc2 installed on FreeBSD 5.3-Stable
> as at 20/01/2005.
> 
> [Sun Jan 23 04:29:45 2005] [error] Undefined subroutine
> &HTML::Embperl::handler called.\n

HTML::Embperl was the older (1.3.x) name, Embperl 2 uses simply
"Embperl".

Have a read of Embperl::Config, in particular the bits regarding
apache "LoadModule" directives and other apache configuration.

-- 
 - Gus


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org