CommandByMail plugin installation

Hello,

I'm trying to install CommandByMail Plugin and it's not working. 




The end of installation give me an error message (see below) :

# perl Makefile.PL

Using RT configuration from /opt/rt4/lib/RT.pm:


lib        =>
/opt/rt4/local/plugins/RT-Extension-CommandByMail/lib


*** Module::AutoInstall version 1.08


*** Checking for Perl dependencies...


[Core Features]


- Test::More         ...loaded. (0.98)


- IPC::Open2         ...loaded. (1.03)


- UNIVERSAL::require ...loaded. (0.13)


- MIME::Entity       ...loaded. (5.505 >= 5.420)


*** Module::AutoInstall configuration finished.


Open input
'/opt/tmp/RT-Extension-CommandByMail-0.17/lib/RT/Extension/CommandByMail/Test.pm'
file for substitution


Open output
'/opt/tmp/RT-Extension-CommandByMail-0.17/lib/RT/Extension/CommandByMail/Test.pm'
file for substitution


Generating a Unix-style Makefile


Writing Makefile for RT::Extension::CommandByMail


Writing MYMETA.yml and MYMETA.json

# make

cp lib/RT/Extension/CommandByMail.pm
blib/lib/RT/Extension/CommandByMail.pm


cp lib/RT/Interface/Email/Filter/TakeAction.pm
blib/lib/RT/Interface/Email/Filter/TakeAction.pm


cp lib/RT/Extension/CommandByMail/Test.pm
blib/lib/RT/Extension/CommandByMail/Test.pm


Manifying blib/man3/RT::Extension::CommandByMail.3pm


Manifying blib/man3/RT::Interface::Email::Filter::TakeAction.3pm

# make install

Installing

/opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Extension/CommandByMail.pm

Installing

/opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Extension/CommandByMail/Test.pm

Installing

/opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Interface/Email/Filter/TakeAction.pm

Installing /opt/rt4/local/man/man3/RT::Extension::CommandByMail.3pm


Installing
/opt/rt4/local/man/man3/RT::Interface::Email::Filter::TakeAction.3pm


Appending installation info to
/opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/perllocal.pod


Couldn't load RT config file RT_SiteConfig.pm:

Can’t locate object method “InitPluginPaths” via package
"RT::Extension::CommandByMail" (perhaps you forgot to load
"RT::Extension::CommandByMail"?) at /opt/rt4/lib/RT.pm line 657.

Compilation failed in require at /opt/rt4/lib/RT/Config.pm
line 1078.

make: *** [install] Erreur 255

Did anybody already see that ?




Thanks




Olivier

I’m trying to install CommandByMail Plugin and it’s not working.

What version of RT?

make install

Installing /opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Extension/
CommandByMail.pm
Installing /opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Extension/
CommandByMail/Test.pm
Installing /opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Interface/
Email/Filter/TakeAction.pm
Installing /opt/rt4/local/man/man3/RT::Extension::CommandByMail.3pm
Installing /opt/rt4/local/man/man3/RT::Interface::email::Filter::TakeAction.3pm
Appending installation info to /opt/rt4/local/plugins/
RT-Extension-CommandByMail/lib/perllocal.pod
Couldn’t load RT config file RT_SiteConfig.pm:

Can’t locate object method “InitPluginPaths” via package
“RT::Extension::CommandByMail” (perhaps you forgot to load
“RT::Extension::CommandByMail”?) at /opt/rt4/lib/RT.pm line 657.
Compilation failed in require at /opt/rt4/lib/RT/Config.pm line 1078.
make: *** [install] Erreur 255

Are you running this as root, or another user who can read
RT_SiteConfig.pm ?

Also, did you already add RT::Extension::CommandByMail to Plugins in
your RT_SiteConfig.pm, before running make install?

Lastly, please show
make -n install

-kevin

I’m trying to install CommandByMail Plugin and it’s not working.
What version of RT?

Sorry for this missing…

It’s RT 4.2.5

make install

Installing /opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Extension/
CommandByMail.pm
Installing /opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Extension/
CommandByMail/Test.pm
Installing /opt/rt4/local/plugins/RT-Extension-CommandByMail/lib/RT/Interface/
Email/Filter/TakeAction.pm
Installing /opt/rt4/local/man/man3/RT::Extension::CommandByMail.3pm
Installing /opt/rt4/local/man/man3/RT::Interface::email::Filter::TakeAction.3pm
Appending installation info to /opt/rt4/local/plugins/
RT-Extension-CommandByMail/lib/perllocal.pod
Couldn’t load RT config file RT_SiteConfig.pm:

Can’t locate object method “InitPluginPaths” via package
“RT::Extension::CommandByMail” (perhaps you forgot to load
“RT::Extension::CommandByMail”?) at /opt/rt4/lib/RT.pm line 657.
Compilation failed in require at /opt/rt4/lib/RT/Config.pm line 1078.
make: *** [install] Erreur 255
Are you running this as root, or another user who can read
RT_SiteConfig.pm ?

Yes I’m root

Also, did you already add RT::Extension::CommandByMail to Plugins in
your RT_SiteConfig.pm, before running make install?

Yes but not correctly :-[
I’ve added it like other plugins :
Plugin(‘RT::Extension::CommandByMail’);

and not :
Set(@Plugins, ( @Plugins, “RT::Extension::CommandByMail” ));

I have now in my RT_SiteConfig.pm :
#Command by mail plugin
Set(@Plugins, ( @Plugins, “RT::Extension::CommandByMail” ));
Set(@MailPlugins, qw(Auth::MailFrom Filter::TakeAction));

So, it seems to be right installed now but… Commands by mail are not
recognized.
For example i put this on the first line of a mail ticket :

Status: resolved

I sent it with only text format and nothing appended

I’m sure I’m missing something but I don’t know what…

Olivier

Also, did you already add RT::Extension::CommandByMail to Plugins in
your RT_SiteConfig.pm, before running make install?

Yes but not correctly :-[
I’ve added it like other plugins :
Plugin(‘RT::Extension::CommandByMail’);

and not :
Set(@Plugins, ( @Plugins, “RT::Extension::CommandByMail” ));

Plugin(‘RT::Extension::CommandByMail’)
is significantly more correct than your Set(@Plugins) version.

What I asked was if you had added RT::Extension::CommandByMail to your
RT_SiteConfig.pm before running make install and getting your error.

I was interested in that installation error and how you got to that state.

For example i put this on the first line of a mail ticket :

Status: resolved

I sent it with only text format and nothing appended

Confirm your Plugin settings in the Sytem Configuration page, turn your
logging to debug and read the logs.

-kevin