You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Harold Martin <co...@earthlink.net> on 2003/08/25 01:40:44 UTC
syntax error ... near "compile qw(:common)"
Hello,
When I try to start up Apache, I get the error:
[error] syntax error at /usr/lib/perl5/site_perl/5.8.0/ProMP3.pm line 8,
near "compile qw(:common)"
Compilation failed in require at /etc/httpd/promp3/promp3.handler.pl
line 6.
BEGIN failed--compilation aborted at /etc/httpd/promp3/promp3.handler.pl
line 6.
Compilation failed in require at (eval 1) line 1.
ProMP3.pm's has:
use Apache2 ();
use Apache::compat;
use Apache::ServerUtil ();
use strict;
use vars qw($VERSION);
use DBI;
use Apache::Const -compile qw(:common);
What do I need to do differently?
Thanks,
Harold
Re: syntax error ... near "compile qw(:common)"
Posted by Stas Bekman <st...@stason.org>.
Harold Martin wrote:
> On Sun, 2003-08-24 at 17:21, Stas Bekman wrote:
>
>>Harold Martin wrote:
>>
>>>Hello,
>>>When I try to start up Apache, I get the error:
>>>[error] syntax error at /usr/lib/perl5/site_perl/5.8.0/ProMP3.pm line 8,
>>>near "compile qw(:common)"
>>>Compilation failed in require at /etc/httpd/promp3/promp3.handler.pl
>>>line 6.
>>>BEGIN failed--compilation aborted at /etc/httpd/promp3/promp3.handler.pl
>>>line 6.
>>>Compilation failed in require at (eval 1) line 1.
>>>
>>>ProMP3.pm's has:
>>>use Apache2 ();
>>>use Apache::compat;
>>>use Apache::ServerUtil ();
>>>use strict;
>>>use vars qw($VERSION);
>>>use DBI;
>>>use Apache::Const -compile qw(:common);
>>
>>where did you find an example of this?
>>
>>It should be:
>>
>>use Apache::Const -compile => qw(:common);
>>
>>or:
>>
>>use Apache::Const -compile, qw(:common);
>
>
> The form I used is from the Apache::Const page
> http://perl.apache.org/docs/2.0/api/Apache/Const.html#C__common_
Ah thank you, I've fixed that.
> Using either of the two other lines results in the error:
> [error] Can't locate # in @INC ...
>
> What's that all about?
Please post a short test example and a full error message as a part of a
proper bug report as explained here:
http://perl.apache.org/bugs/
Thanks.
__________________________________________________________________
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
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
Re: syntax error ... near "compile qw(:common)"
Posted by Harold Martin <co...@earthlink.net>.
On Sun, 2003-08-24 at 17:21, Stas Bekman wrote:
> Harold Martin wrote:
> > Hello,
> > When I try to start up Apache, I get the error:
> > [error] syntax error at /usr/lib/perl5/site_perl/5.8.0/ProMP3.pm line 8,
> > near "compile qw(:common)"
> > Compilation failed in require at /etc/httpd/promp3/promp3.handler.pl
> > line 6.
> > BEGIN failed--compilation aborted at /etc/httpd/promp3/promp3.handler.pl
> > line 6.
> > Compilation failed in require at (eval 1) line 1.
> >
> > ProMP3.pm's has:
> > use Apache2 ();
> > use Apache::compat;
> > use Apache::ServerUtil ();
> > use strict;
> > use vars qw($VERSION);
> > use DBI;
> > use Apache::Const -compile qw(:common);
>
> where did you find an example of this?
>
> It should be:
>
> use Apache::Const -compile => qw(:common);
>
> or:
>
> use Apache::Const -compile, qw(:common);
The form I used is from the Apache::Const page
http://perl.apache.org/docs/2.0/api/Apache/Const.html#C__common_
Using either of the two other lines results in the error:
[error] Can't locate # in @INC ...
What's that all about?
Thanks,
Harold
Re: syntax error ... near "compile qw(:common)"
Posted by Stas Bekman <st...@stason.org>.
Harold Martin wrote:
> Hello,
> When I try to start up Apache, I get the error:
> [error] syntax error at /usr/lib/perl5/site_perl/5.8.0/ProMP3.pm line 8,
> near "compile qw(:common)"
> Compilation failed in require at /etc/httpd/promp3/promp3.handler.pl
> line 6.
> BEGIN failed--compilation aborted at /etc/httpd/promp3/promp3.handler.pl
> line 6.
> Compilation failed in require at (eval 1) line 1.
>
> ProMP3.pm's has:
> use Apache2 ();
> use Apache::compat;
> use Apache::ServerUtil ();
> use strict;
> use vars qw($VERSION);
> use DBI;
> use Apache::Const -compile qw(:common);
where did you find an example of this?
It should be:
use Apache::Const -compile => qw(:common);
or:
use Apache::Const -compile, qw(:common);
__________________________________________________________________
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
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html