Subject: | Apache2-TomKit File::Spec error |
Date: | Tue, 3 Jun 2008 15:41:53 -0700 |
To: | <bug-Apache2-TomKit [...] rt.cpan.org> |
From: | "Alan Edel" <a_edel [...] audiblemagic.com> |
Distribution name and version: Apache2-TomKit-0.01_6
We found that the file
/usr/local/lib/perl5/site_perl/5.8.8/Apache2/TomKit/Cache/FileSystem.pm
needs a "use File::Spec;" statement, otherwise you get the following
run-time error:
[Tue Jun 03 21:21:33 2008] [error] [client 192.168.1.115] Can't locate
object method "tmpdir" via package "File::Spec" (perhaps you forgot to load
"File::Spec"?) at
/usr/local/lib/perl5/site_perl/5.8.8/Apache2/TomKit/Cache/FileSystem.pm line
40.\n
We added line 27, which resolved the problem:
# diff FileSystem.pm.orig FileSystem.pm
26a27
Show quoted text
> use File::Spec;
Our Perl version:
# perl -v
This is perl, v5.8.8 built for amd64-freebsd
(with 1 registered patch, see perl -V for more detail)
Our O.S. info:
# uname -a
FreeBSD gozer.audiblemagic.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb
24 10:35:36 UTC 2008
root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Best regards,
Alan Edel