CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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


New User

Jul 15, 2010, 7:45 AM

Post #1 of 2 (35591 views)
Migrating from Linux to Windows and Handlers Can't Post

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 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/ 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/ line 23.\nBEGIN failed--compilation aborted at c:/inetpub/wwwroot/perl_tgc/Tomahawk/ line 23.\nCompilation failed in require at (eval 17) line 3.\n, referer:

The line 23 in reads
use IO::All;

There is an 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

Post #2 of 2 (35570 views)
Re: [jon_the_eye] Migrating from Linux to Windows and Handlers [In reply to] Can't Post


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



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives