[rt-users] can't locate XXX

Ruslan Zakirov ruz at bestpractical.com
Wed Apr 20 01:17:00 EDT 2011


On Tue, Apr 19, 2011 at 9:29 PM, Mike Johnson <mike.johnson at nosm.ca> wrote:
> When the apache error_log shows an error stating it can't locate a given .pm
> file in @INC what are my steps to resolve this?
>
> Specifically, when I insert the line
>
> Set(@Plugins,qw(... RT::Extension::ExtractCustomFieldValues));
>
> into my site config, apache won't start up and complains it cannot find the
> ExtractCustomFieldValues.pm
>
> I searched the lists, and some have said the path to the pm is not in the
> @INC environment variable and to move the .pm to a place that is.  In the
> error it lists the @INC variable, and /opt/rt3/local/lib or /opt/rt3/lib
> exist in it

In 3.8 @INC should be

rt3/local/lib
rt3/local/plugins/X/lib
rt3/local/plugins/Y/lib
rt3/local/plugins/Z/lib
rt3/lib

If you have set @Plugins to (X Y Z) in the config, but ...

* ..., but only some plugins' paths are in the @INC - check config for
double Set(@Plugins, ...)
* ..., but only some plugins' paths are in the @INC - check above and
check permissions on dirs
* ..., but none of rt3/local/plugins/.../lib is in the @INC - check
above, may be you have earlier 3.8.x release with a bug, upgrade to
the latest

> , so I attempted to move the .pm in question to one of those
> areas with no luck...
> Strikes me as odd that I'd have to move this considering I've installed 2
> other extensions prior to this one that fired up with out any issues...

100% there is no need in moving files around. Pretty good chances to
break things further or complicate future upgrades.

> Anyone give me a few steps to troubleshoot or try out?
>
> Thanks!
> Mike.

-- 
Best regards, Ruslan.



More information about the rt-users mailing list