Home: Perl Programming Help: mod_perl:
Migrating from Linux to Windows and Handlers

New User

Jul 15, 2010, 7:45 AM

Views: 31730
Migrating from Linux to Windows and Handlers

Hi List

My first post, so please excuse my ignorance.

I am involved in a project to move a Linux hosted Apache/mod_perl site to a windows platform.

The site concerned contains some strange "<[" code inside actual .html pages, which clearly need a handler to process them.

I have got Apache/mod_perl working but I am have a real problem with a handler called "Tomahawk". The project itself seems to have disappeared-
I think this the home page for the project, but even the download links are defunct.

(Not to be confused with an Apache Tomahawk "My Faces" project)

Here is my httpd.conf snippet:

ServerName testsite
DocumentRoot c:/inetpub/wwwroot/testsite

Options FollowSymLinks ExecCGI
PerlSetVar SiteName fashionpersonnel

<Files ~ "\.html$">
SetHandler modperl
PerlResponseHandler Tomahawk::Handler


I wasn't sure where to move everything, so I moved the site to c:\inetpub\wwwroot\testsite

and created "c:\inetpub\wwwroot\perl" and "c:\inetpub\wwwroot\perl_tgc" and copied the hander code in from the old site.

there is a startup.pl file, in c:\inetpub\wwwroot\perl\

#! ./perl
use strict;

# use Apache2;
use lib 'c:/inetpub/wwwroot/perl_tgc';

use DBI;

use CGI();


This is what apache's error.log is saying.
[Wed Jul 14 05:48:08 2010] [error] [client] failed to resolve handler `Tomahawk::Handler': Can't locate IO/All.pm in @INC (@INC contains: c:/inetpub/wwwroot/perl_tgc C:/Perl/site/lib C:/Perl/lib . C:/Program Files/Apache Software Foundation/Apache2.2) at c:/inetpub/wwwroot/perl_tgc/Tomahawk/Handler.pm line 23.\nBEGIN failed--compilation aborted at c:/inetpub/wwwroot/perl_tgc/Tomahawk/Handler.pm line 23.\nCompilation failed in require at (eval 17) line 3.\n, referer:

The line 23 in handler.pm reads
use IO::All;

There is an IO.pm file in c:\perl\lib (C:\perl is where I put ActivePerl 5.8)

Any help, general pointers, would be very much appreciated. (For example, could I get <[ ]> working without Tomahawk)



Jul 15, 2010, 4:49 PM

Views: 31709
Re: [jon_the_eye] Migrating from Linux to Windows and Handlers


Although you have IO installed it looks as if you do not have IO::All installed.