Hi Ken, I'm new to all this too - and I'm also getting to grips with Apache configs etc.
However, I think I can help you here... The problem you have got is that when the Perl code runs, it cannot load the WeatherTaglib.pm module. In a normal Perl script you could just put a line use lib '/path/to/my/lib_dir/'; and you would put WeatherTaglib.pm here: /path/to/my/lib_dir/My/WeatherTaglib.pm So what you need to do is tell mod_perl where the .pm file is. This is done by adding the following block to your httpd.conf file: <Perl> use lib '/path/to/my/lib_dir/'; </Perl> The above tells Apache to run the above perl code when httpd starts up. Of course, you will need to restart Apache after making the change to httpd.conf. Barrie was achieving the same result with his PerlRequire startup.pl line. This runs the startup.pl script when Apache starts up, and startup.pl contains the "use lib" statements, I think. So you can either create a startup.pl script - which needs to sit, I believe, in your root apache directory (e.g. on my Redhat system, in /etc/httpd), or modify httpd.conf. I'm sure those who know more about Apache config can correct any misconceptions/errors in the above - but it seemed to work for me! Hope this helps, James > -----Original Message----- > From: Ken Corey [mailto:[EMAIL PROTECTED] > Sent: 14 November 2003 16:46 > To: AxKit Users > Subject: Trying to follow the tutorials... > > Hi All, > > I'm trying to follow the tutorials as found on the AxKit web > site, and am slowly understanding how it all hangs together. > > However, I'm having troubles with the taglibs. > > in the tutorial about creating taglibs entitled "XSP, Taglibs > and Pipelines", Barrie talks about a My::WeatherTaglib...but > he doesn't say where to put the file. > > So, I've tried two positions: where the perl modules are > stored, and in the docroot of the website. > > In both cases, if the file is there, I get the error: > > Can't locate object method "register" via package "My::WeatherTaglib" > (perhaps you forgot to load "My::WeatherT...') called at.... > > In my httpd.conf file I've got this: > > AxAddXSPTaglib My::WeatherTaglib > AxAddXSPTaglib AxKit::XSP::Util > AxAddXSPTaglib AxKit::XSP::Param > > So, it seems it *should* be loaded. > > Any ideas? > > -Ken > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
