LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-15-2005, 01:59 PM   #1
Silent1
Member
 
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, 02:41 PM   #2
Silent1
Member
 
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/Request.pm 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, 10:46 AM   #3
depdiver
Member
 
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.

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

Rep: Reputation: 0
Hi,

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 MVC.pm

However check http://www.codecomments.com/archive2...-2-406243.html
as this may prvide a clue.

Keith
 
  


Reply



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 07:35 AM
Apache2/mod_perl 2.0/Mason problem lowpro2k3 Linux - Software 0 08-08-2005 11:31 AM
Finding Text in an html file Xaque208 Linux - Software 3 11-15-2004 10:32 PM
My Apache2 fails to parse php-scripts in html pages 3-1415 Linux - Software 6 10-21-2004 05:59 AM
Impossible: Installing mod_perl2 w/ Apache2 pauljtester Linux - General 1 07-30-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:50 PM.

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