[rt-users] Plugins question
Jesse Vincent
jesse at bestpractical.com
Sun Sep 7 15:19:45 EDT 2008
[Please keep the list CCed]
On Sep 7, 2008, at 3:16 PM, Jerrad Pierce wrote:
> On Sun, Sep 7, 2008 at 13:48, Jesse Vincent
> <jesse at bestpractical.com> wrote:
> RT.pm's Plugins code certainly should be adding the right thing to
> the lib path. Does it not?
>
> Umm no hence
Are you perhaps trying to write your own scripts that use RT's
libraries and not calling RT::Init?
is sub RT::InitPluginPaths getting called? Is it finding the plugin
directory? Is it deciding to skip the plugin's lib dir for some reason?
You'll likely need to actually add a bit of logging or debugging
output to the core to see what's going wrong so you can help us fix it.
Best,
Jesse
>
>
> To get the latter to work I have to do
> use lib qw'/opt/rt3/lib /opt/rt3/local/plugins/RTx-Calendar/lib/';
>
> [Sun Sep 7 19:15:25 2008] [crit]: Can't locate RTx/Calendar.pm in
> @INC (@INC contains: /opt/rt3/lib /usr/lib/perl5/5.8.5/i386-linux-
> thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/
> i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-
> thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /
> usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/
> site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/
> 5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/
> lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/
> perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/
> site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/
> 5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-
> linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-
> thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-
> multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/
> lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/
> vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/
> vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/
> vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/
> vendor_perl .) at /opt/rt3/lib/RT.pm line 624. (/opt/rt3/lib/RT.pm:
> 377)
> Can't locate RTx/Calendar.pm in @INC (@INC contains: /opt/rt3/lib /
> usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /
> usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/
> site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/
> 5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-
> linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-
> multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/
> lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/
> perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/
> site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/
> site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /
> usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/
> perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/
> vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/
> 5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-
> linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/
> vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/
> vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/
> vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /opt/rt3/lib/
> RT.pm line 624.
>
> --
> Cambridge Energy Alliance: Save money & the planet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080907/802a3609/attachment.htm>
More information about the rt-users
mailing list