Had a problem involving getting HTML::Mason to work with Mod_perl. The issue was that despite having mod_perl installed, you need another library that really isn't talked about much. That library is libapreq. I'm a little surprised that the mod_perl guys haven't integrated this into the regular mod_perl distribution, but I guess it's just an extension at this point. But this library is a C/XS library that has Apache::Request and Apache::Cookie interfacing to the actual Apache C libraries. In turn, this makes the routines for accessing apache requests and cookies faster. HTML::Mason allows the user to either choose the normal CGI.pm module or Apache::Request.pm for handling these types of routines. With Apache::Request.pm, there is less memory usage and faster access. Hence, I chose this path. However, the basic libapreq install off of CPAN is a little buggy. Instead, you need to utilize the cvs repository to get the version with the corrected makefiles, etc.: cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login CVS password: anonymous cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co httpd-apreq as I am using mod_perl version 1, i'm going with this version. after grabbing it, just run perl Makefile.pl & make & make install. The good thing is that it should test properly so you probably want to run make test on top of that.
Trackbacks: (Trackback URL)
No Comments Posted Yet
