Re: [dev] weird problem with INC in GenericInterface modules

Hi all, or even $ perl -I/opt/otrs -I/opt/otrs/Kernel/cpan-lib -I/opt/otrs/Custom ... cu, Martin i. A. Martin Vorländer Software-Entwicklung PDV-Systeme GmbH Dörntener Straße 2 A DE-38644 Goslar Tel +49 (0) 5321 3703-33 Fax +49 (0) 5321 8924 E-Mail MV@pdv-systeme.de www.pdv-systeme.de Geschäftsführer: Christian Daniel, Andree Plumeier, Amtsgericht Braunschweig HRB 110209 Unsere Allgemeinen Geschäftsbedingungen finden Sie unter: www.pdv-systeme.de/agbs/ Hinweis: Diese E-Mail ist vertraulich. Wenn Sie nicht der vorgesehene Empfänger sind, verwenden Sie bitte keine Inhalte dieser E-Mail und leiten Sie diese auch nicht weiter. Wenn Sie fälschlicherweise diese E-Mail bekommen haben, informieren Sie uns bitte umgehend und löschen dieses Dokument.
-----Ursprüngliche Nachricht----- Von: dev-bounces@otrs.org [mailto:dev-bounces@otrs.org] Im Auftrag von Martin Gruner Gesendet: Montag, 25. April 2016 15:26 An: Development community of OTRS
Betreff: Re: [dev] weird problem with INC in GenericInterface modules 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-transparente- prozesse/?lang=de
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/Generi cInterface/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
_______________________________________________ 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

To have the correct order of the directories in @INC, it should be $ perl -I/opt/otrs/Custom -I/opt/otrs -I/opt/otrs/Kernel/cpan-lib ... - Renée Am 25.04.2016 um 16:54 schrieb Vorländer, Martin:
Hi all,
or even
$ perl -I/opt/otrs -I/opt/otrs/Kernel/cpan-lib -I/opt/otrs/Custom ...
cu, Martin
-- Perl / OTRS development: http://perl-services.de OTRS AddOn repository: http://opar.perl-services.de
participants (2)
-
Renee B
-
Vorländer, Martin