David Christensen wrote:
Carl Johnstone wrote:
option of using the version in Sarge, and figuring our where I differ
What version of mp2 comes with Sarge packages ?
1.9922 or higher I hope.
When I try to port my Eagle book modules to mod_perl2, I trip over the very
first step:
[EMAIL PROTECTED]:~$ perl -e "use EagleBook2::Hello"
Can't locate Apache/Constants.pm in @INC ...
use Apache2::Const -compile qw(OK) or similiar
see
http://perl.apache.org/docs/2.0/rename.html
I assume you are using
http://modperl.com/book/source/apachemod-code-1.02/lib/Apache/Hello.pm
So here it is ported to mp2 RC5+
Its running at
http://p6m7g8.net/hello
package Apache::Hello;
use strict;
use Apache2::Const -compile => qw (OK);
use Apache2::RequestIO ();
use Apache2::RequestRec ();
use Apache2::Connection ();
sub handler {
my $r = shift;
$r->content_type('text/html');
return Apache2::Const::OK if $r->header_only;
my $host = $r->connection->get_remote_host();
$r->print(<<END);
<HTML>
<HEADER>
<TITLE>Hello There</TITLE>
</HEADER>
<BODY>
<H1>Hello $host</H1>
Who would take this book seriously if the first example didn't
say "hello world"?
</BODY>
</HTML>
END
return Apache2::Const::OK;
}
1;
[EMAIL PROTECTED]:~$ grep Method .bashrc
alias lookup="perl -MModPerl::MethodLookup -e print_method"
hmm.... I'll bet you are using something PRE RC5 (i.e. 1.9921 or before)
Likely, you're not missing it, but its not in your @INC.
Has anyone had success using Debian 3.1 with Apache2 and mod_perl2?
Haven't tried yet, but I'll have a test bed sometime next week.
Someone mentioned FreeBSD -- which version? 5.4? Are there "ports" for CPAN
modules, or does the user go to CPAN directly?
I'm biased to FreeBSD so I won't comment. However, to answer your question.
ports/packages are at 2.0.54 and 2.0.1.
Should work on almost all versions. If you wanted threaded environments use
5.3+ with libpthread.so instead of the older libc_r.so
I'll vouch vor 4.11, 5.3, 5.4, 6.0-BETA2, 7.0-current.
--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com