Re: [Lxr-dev] New database structure about to land
Brought to you by:
ajlittoz
From: Malcolm B. <ma...@br...> - 2001-11-21 02:13:33
|
Hi all, Robin Theander wrote: > > Hi all, > > Kristoffer Gleditsch wrote: > > I run into the error mentioned in <200...@lu...> > > pretty often: "** Fatal: Can't locate LXR/Lang/Generic.pm in @INC > > (@INC contains: ...". It's the same module it complains about every > > time, but I'm not very familiar with mod_perl, so I don't know where > > to start debugging it. > > I have seen this as well. The lib/LXR stuff looked a bit odd to me and after I > added a link LXR -> lib/LXR problems has gone away. /me too ;-) This is something that seems to occur on a maddeningly non-repeatable basis. > Is the lib directory in the way? Interesting suggestion, but I don't think so. The error I see is usually for Generic.pm from somewhere in Common.pm. The thing is, Common.pm is in lib/LXR as well, so how did the script manage to find Common.pm and then be unable to find lib/LXR/Lang? As I understand the search mechanism in perl, first you replace the :: with /, then search each directory in @INC for the file X/Y/Z.pm (for module X::Y::Z). So if you can find lib/LXR/Common.pm from LXR::Common, surely you can find lib/LXR/Lang/Generic.pm from LXR::Lang::Generic? What makes things even stranger is that a reload of the page usually clears the error - and I would have thought that a path error would be permanent. So this one has me flumoxed - I need to find some good ways to debug mod_perl and track down what's going on. Assistance welcome. Malcolm |