On Friday 22 February 2002 06:24, Mark Cance wrote: > [Fri Feb 22 11:12:49 2002] [notice] Apache/1.3.23 (Unix) AxKit/1.5 > mod_perl/1.26 configured -- resuming normal operations > [Fri Feb 22 11:12:49 2002] [notice] Accept mutex: fcntl (Default: fcntl) > [Fri Feb 22 11:12:57 2002] [error] [client 192.168.11.3] [AxKit] [Error] > Can't locate object method "register" via package "freeloader::taglib > " (perhaps you forgot to load "freeloader::taglib"?) at > /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris/Apache/AxKit/Language/XSP >. pm line 15 > 3. > > Obviously I've got some more reading to do on the mod_perl front!! But I > assumed my taglib below was complete. > Remember, Apache mod_perl needs to be able to find your taglib at web server startup time. I suspect the problem is that your taglib isn't in @INC at that point. mod_perl looks for things in the same places as any other perl program does, plus usually 1 or 2 extra locations. If you get an error when you type
perl -Mfreeloader::taglib from a shell prompt (and NOT while you are in the freeloader directory) then mod_perl isn't going to find it either. Generally the easiest way to set these things up is to build a perl installer package for your stuff. You can do that by using the "h2xs" command like so. h2xs -X Mymodule This will create a directory "Mymodule" and construct a Makefile.PL which will install it. DON'T run this in a place where it will put stuff in your existing taglib directory because it WILL overwrite some files. In particular it creates a Mymodule.pm file for you (which is just pretty much empty, but take a look at it). After you run h2xs, put your .pm file in the directory created. You can put additional .pm files in a subdirectory of that directory called lib, so if your taglib needed some other stuff you could put it there. Doing "perl Makefile.PL; make; make install" should put your stuff where perl can always find it. There are of course about 100 other ways to go about this, but I've found that installing my taglibs is usually the simplest way to use them. Plus, as a bonus, you can give them to other people and THEY can install them to! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
