weird problem with INC in GenericInterface modules
Juan Manuel Clavero Almirón <[email protected]> Mon, 25 Apr 2016 12:31:40 +0000
| Newsgroups | gmane.comp.otrs.devel |
|---|---|
| Message-ID | <4E6C4135180B424CBFC6C6DE9456154A01258C1D2D@SCPDPSEXMB01P.ssib.local> |
--===============1058824989==
Content-Language: es-ES
Content-Type: multipart/alternative;
boundary="_000_4E6C4135180B424CBFC6C6DE9456154A01258C1D2DSCPDPSEXMB01P_"
--_000_4E6C4135180B424CBFC6C6DE9456154A01258C1D2DSCPDPSEXMB01P_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
I'm having a weird problem with INC when I try to compile a GenericInterfac=
e 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::Int=
eractive 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/Ker=
nel/System/Encode.pm line 16.
But when I use the same command to compile any other module, everything wor=
ks 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-e=
xisting 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 inst=
allation?
Kind regards,
Juan Clavero
--_000_4E6C4135180B424CBFC6C6DE9456154A01258C1D2DSCPDPSEXMB01P_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EstiloCorreo17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"ES" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi all,<o:p></o:p></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I’m having a weird proble=
m with INC when I try to compile a GenericInterface module.<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">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.<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-left:35.4pt"><span lang=3D"EN-US" st=
yle=3D"font-family:Consolas"><o:p> </o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-left:35.4pt"><span lang=3D"EN-US" st=
yle=3D"font-family:Consolas">$ perl -I /opt/otrs/ -c /opt/otrs/Kernel/Gener=
icInterface/Invoker/Test/Test.pm<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-left:35.4pt"><span lang=3D"EN-US" st=
yle=3D"font-family:Consolas">Can't locate IO/Interactive.pm in @INC (you ma=
y need to install the IO::Interactive module) (@INC contains: /opt/otrs/Ker=
nel/GenericInterface/Invoker/Custom
<b>/opt/otrs/Kernel/GenericInterface/Invoker/Kernel/cpan-lib</b> /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.<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-left:35.4pt"><span lang=3D"EN-US" st=
yle=3D"font-family:Consolas"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">But when I use the same command=
to compile any other module, everything works as expected.<o:p></o:p></spa=
n></p>
<p class=3D"MsoNormal" style=3D"margin-left:35.4pt"><span lang=3D"EN-US" st=
yle=3D"font-family:Consolas"><o:p> </o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-left:35.4pt"><span lang=3D"EN-US" st=
yle=3D"font-family:Consolas">$ perl -I /opt/otrs/ -c /opt/otrs/Kernel/Syste=
m/Ticket.pm<o:p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-left:35.4pt"><span lang=3D"EN-US" st=
yle=3D"font-family:Consolas">/opt/otrs/Kernel/System/Ticket.pm syntax OK<o:=
p></o:p></span></p>
<p class=3D"MsoNormal" style=3D"margin-left:35.4pt"><span lang=3D"EN-US" st=
yle=3D"font-family:Consolas"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">The problem is that, when I try=
to compile the GenericInterface module, it joins the ‘Kernel/cpan-li=
b’ with the previous folder and results in a non-existing folder (</s=
pan><b><span lang=3D"EN-US" style=3D"font-family:Consolas">/opt/otrs/Kernel=
/GenericInterface/Invoker/Kernel/cpan-lib</span></b><span lang=3D"EN-US">).
Should I report this as a bug or do you think it is a problem with my inst=
allation?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"color:#1F497D;mso-fareast-language:ES=
">Kind regards,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ar=
ial",sans-serif;color:#1F497D;mso-fareast-language:ES">Juan Clavero</s=
pan><span lang=3D"EN-US" style=3D"font-size:10.0pt;font-family:"Arial&=
quot;,sans-serif;color:#1F497D;mso-fareast-language:ES"><o:p></o:p></span><=
/p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
--_000_4E6C4135180B424CBFC6C6DE9456154A01258C1D2DSCPDPSEXMB01P_--
--===============1058824989==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
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
--===============1058824989==--