Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-15-2005, 02:59 PM   #1
Registered: Jul 2002
Location: Davie, FL
Distribution: Debian
Posts: 33

Rep: Reputation: 15
Apache2, mod_perl2, HTML::Mason not finding Apache::Request2-2

i'm trying to setup mason on apache2, mod_perl2 setup. But mason isn't finding Apache::Request and i'm getting errors compiling html::mason and in the httpd.conf file.

[error] Can't load Perl module HTML::Mason::ApacheHandler for server

I successfully set this up on my home machine with mod_perlRC2, i haven't tried that yet but i don't see how that'll make a difference. Is there anything that i must do to tell mason to use apache 2? Because when i type perl Makefile.PL this is what i get.
Checking for Test::More...ok
Checking for Scalar::Util...ok
Checking for Exception::Class...ok
Checking for Params::Validate...ok
Checking for File::Spec...ok
Checking for CGI...ok
Checking for Class::Container...ok
Checking for Cache::Cache...ok
Checking for Apache::Request... not found
*** If you plan to use Mason with mod_perl,
Mason requires version 0.32, or later, of Apache::Request
from CPAN/modules/by-module/Apache/Apache-Request-x.x.tar.gz

But i installed libapreq2-2.04-dev and it installed perfectly. Any ideas how i can get this thing going? Thanks in advance.
Old 01-15-2005, 03:41 PM   #2
Registered: Jul 2002
Location: Davie, FL
Distribution: Debian
Posts: 33

Original Poster
Rep: Reputation: 15
just an update, this command on my home server (which i've set this up successfully)

perl -MApache::Request -e'print Apache::Request->VERSION'
returns 2.04-dev

but on the server in question it returns
Can't locate Apache/ in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .).
BEGIN failed--compilation aborted.

so apache::request is not being installed. Any ideas where is may be installed, etc?
Old 04-29-2005, 11:46 AM   #3
Registered: Aug 2004
Distribution: RedHat Enterprise, SLED 10, Freespire
Posts: 49

Rep: Reputation: 15
Most likely you looked at this, but mason requires at least version 1.27 to work with mod_perl2.0. I'm not going ot be much help I was just handed a project that uses mason and I'm just beginning to research it.

Old 04-30-2005, 05:52 PM   #4
LQ Newbie
Registered: Apr 2005
Distribution: Redhat
Posts: 1

Rep: Reputation: 0

Ive had similar problems wirh Maypole.

It looks like Apache and CPAN distributions are "out of sync", regarding Apache and mod_perl2. If you look at the documentation Apache::Request has now become Apache::RequestUtils::Request etc etc (but in Maypole you have to use Apache2::RequestUtils::Request (I'm still trying to figure it out !!!) in

However check
as this may prvide a clue.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 no index.html page babelbrennt Debian 1 11-10-2005 08:35 AM
Apache2/mod_perl 2.0/Mason problem lowpro2k3 Linux - Software 0 08-08-2005 12:31 PM
Finding Text in an html file Xaque208 Linux - Software 3 11-15-2004 11:32 PM
My Apache2 fails to parse php-scripts in html pages 3-1415 Linux - Software 6 10-21-2004 06:59 AM
Impossible: Installing mod_perl2 w/ Apache2 pauljtester Linux - General 1 07-30-2004 12:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration