weird problem with INC in GenericInterface modules

Hi all, I'm having a weird problem with INC when I try to compile a GenericInterface module. I have to make an Invoker and I've been playing with the Test invoker. OTRS gave errors and I tried to compile with perl and gives the following error. $ perl -I /opt/otrs/ -c /opt/otrs/Kernel/GenericInterface/Invoker/Test/Test.pm Can't locate IO/Interactive.pm in @INC (you may need to install the IO::Interactive module) (@INC contains: /opt/otrs/Kernel/GenericInterface/Invoker/Custom /opt/otrs/Kernel/GenericInterface/Invoker/Kernel/cpan-lib /opt/otrs/Kernel/GenericInterface/Invoker /opt/otrs/ /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /opt/otrs/Kernel/System/Encode.pm line 16. But when I use the same command to compile any other module, everything works as expected. $ perl -I /opt/otrs/ -c /opt/otrs/Kernel/System/Ticket.pm /opt/otrs/Kernel/System/Ticket.pm syntax OK The problem is that, when I try to compile the GenericInterface module, it joins the 'Kernel/cpan-lib' with the previous folder and results in a non-existing folder (/opt/otrs/Kernel/GenericInterface/Invoker/Kernel/cpan-lib). Should I report this as a bug or do you think it is a problem with my installation? Kind regards, Juan Clavero

Hello Juan, if you do it like this on the command line you should consider using perl -I/opt/otrs -I/opt/otrs/Kernel/cpan-lib ... Best regards, Martin Gruner Team Lead R&D OTRS AG Bahnhofplatz 1a 94315 Straubing T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/ Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel Mobile Kommunikation und transparente Prozesse - Mit der OTRS Business Solution™ Managed 5 schnell und ohne eigene IT-Ressourcen starten - Jetzt neue Features entdecken und bestellen https://www.otrs.com/neu-in-otrs-business-solution-5-mobile-kommunikation-tr...
Am 25.04.2016 um 14:31 schrieb Juan Manuel Clavero Almirón
: Hi all, I’m having a weird problem with INC when I try to compile a GenericInterface module.
I have to make an Invoker and I’ve been playing with the Test invoker. OTRS gave errors and I tried to compile with perl and gives the following error.
$ perl -I /opt/otrs/ -c /opt/otrs/Kernel/GenericInterface/Invoker/Test/Test.pm Can't locate IO/Interactive.pm in @INC (you may need to install the IO::Interactive module) (@INC contains: /opt/otrs/Kernel/GenericInterface/Invoker/Custom/opt/otrs/Kernel/GenericInterface/Invoker/Kernel/cpan-lib/opt/otrs/Kernel/GenericInterface/Invoker /opt/otrs/ /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /opt/otrs/Kernel/System/Encode.pm line 16.
But when I use the same command to compile any other module, everything works as expected.
$ perl -I /opt/otrs/ -c /opt/otrs/Kernel/System/Ticket.pm /opt/otrs/Kernel/System/Ticket.pm syntax OK
The problem is that, when I try to compile the GenericInterface module, it joins the ‘Kernel/cpan-lib’ with the previous folder and results in a non-existing folder (/opt/otrs/Kernel/GenericInterface/Invoker/Kernel/cpan-lib). Should I report this as a bug or do you think it is a problem with my installation?
Kind regards, Juan Clavero
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
participants (2)
-
Juan Manuel Clavero Almirón
-
Martin Gruner