On Mon, Mar 27, 2006 at 07:46:30PM -0600, Ryan Perry wrote: > I'm having troubles with mod_perl2/Interchange::Link > > failed to resolve handler `Interchange::Link': Can't locate Apache/ > Const.pm in @INC at /usr/local/lib/perl5/site_perl/5.8.8/Interchange/ > Link.pm line 29.\nBEGIN failed--compilation aborted at /usr/local/lib/ > perl5/site_perl/5.8.8/Interchange/Link.pm line 29.\nCompilation > failed in require at (eval 4) line 3.\n > > maybe needs a patch? > http://perl.apache.org/docs/2.0/rename.html > This is the key for the patch. I have changed the module names Apache::* to Apache2::* and Constants under the Apache::* to Apache2::Const::* My diff file is attached. Maybe a developer takes a look at it. The module works as expected with the actual standard demo catalog. Remark: In the earlier versions of missing.html a had included ---- [tag op=header] Status: 404 Not found Content-type: text/html [/tag] ---- With this code I get a blank page, when a missing URL is requested via Interchange::Link. > > Also a few things I didn't understand: > > # Make sure you set SocketPerms to 0666 (or 0660 with > appropriate > # setgid group ownership of the directory) > -- where do I do this and how? See: http://www.icdevgroup.org/pipermail/interchange-users/2003-April/032568.html http://www.icdevgroup.org/pipermail/interchange-users/2002-October/027377.html Good Luck! Achim -- > > Thanks! > > Ryan > > > _______________________________________________ > interchange-users mailing list > suppressed > http://www.icdevgroup.org/mailman/listinfo/interchange-users
29,33c29,33 < use Apache::Const; < require Apache::Connection; < require Apache::RequestRec; < require Apache::RequestIO; < require Apache::RequestUtil; --- > use Apache2::Const; > require Apache2::Connection; > require Apache2::RequestRec; > require Apache2::RequestIO; > require Apache2::RequestUtil; 493c493 < $global_status = Apache::DECLINED; --- > $global_status = Apache2::Const::DECLINED; 505c505 < $global_status = Apache::NOT_FOUND; --- > $global_status = Apache2::Const::NOT_FOUND; 672c672 < return Apache::OK; --- > return Apache2::Const::OK; 733c733 < return Apache::REDIRECT; --- > return Apache2::Const::REDIRECT; 738c738 < return Apache::OK; --- > return Apache2::Const::OK; 757c757 < return Apache::NOT_FOUND; --- > return Apache2::Const::NOT_FOUND; 761c761 < return Apache::FORBIDDEN; --- > return Apache2::Const::FORBIDDEN; 787c787 < return Apache::OK; --- > return Apache2::Const::OK;
_______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.