[rt-users] What modules do I need to load to use the RTFM 2.4.3 API?
Kevin Falcone
falcone at bestpractical.com
Mon Jan 3 16:34:15 EST 2011
On Mon, Jan 03, 2011 at 04:01:08PM -0500, William J. Horka wrote:
> Hi all,
>
> First off, I want to say thanks to the developers for delivering
> RTFM 2.4.3. The fix for managing global custom fields in RT 3.8.8 is
> very helpful.
>
> However, I don't seem to be able to figure out which perl modules I
> need to load to use the API anymore.
RT::FM expects RT to already be configured when RT/FM.pm is loaded.
This should be a better incant, since it allows RT to munge INC to
include plugins for you (rather than needing to include paths into
plugins)
perl -Ilocal/lib -Ilib -e 'BEGIN { use RT; RT::LoadConfig; RT->Init(); }; use RT::FM'
-kevin
> This worked under RTFM 2.4.2, but doesn't work under RTFM 2.4.3rc1 or 2.4.3:
>
> $ perl -I$RT_HOME/lib -I$RT_HOME/local/plugins/RT-FM/lib \
> -MRT -MRT::FM -e 1
> Can't call method "can" on an undefined value at
> /usr/local/HMDC/rt3/local/plugins/RT-FM/lib/RT/FM.pm line 61.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110103/1a2d60fd/attachment.sig>
More information about the rt-users
mailing list