Apache2, mod_perl2, HTML::Mason not finding Apache::Request2-2
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.