eclipse development env compile error
eclipse development env compile error
Hi, I am trying to setup an eclipse development env for otrs, after I have checked out the otrs framework source code, with auto build directly, I have encountered the below compiling error, any idea? I am a newbie for both perl and otrs, and will be very appreciated if any guy can lead me into the gate, thanks a lot in advanced.
Description
Bareword "GSS_C_NO_CREDENTIAL" not allowed while "strict subs" in use in GSSAPI.pm line 61
Resource
GSSAPI.pm
Path Location
/otrs/Kernel/cpan-lib/Authen/SASL/Perl
Type
Unknown Perl Problem
================================
Furthermore, even after I have added the corresponding package to the @INC, it still prompts compile error as below, I have idea why the @INC already mentioned the absolute path as /Kernel/Language, but it sill prompts "can't locate" error.
Description
Can't locate Kernel/Language.pm in @INC (@INC contains: C:/99_Jayenho/Repo/git/otrs/Kernel/Language C:/02_Installed/Perl64/site/lib C:/02_Installed/Perl64/lib)
Resource
Layout.pm
Path Location
/otrs/Kernel/Output/HTML line 15
Type
Perl Problem
Description
Bareword "GSS_C_NO_CREDENTIAL" not allowed while "strict subs" in use in GSSAPI.pm line 61
Resource
GSSAPI.pm
Path Location
/otrs/Kernel/cpan-lib/Authen/SASL/Perl
Type
Unknown Perl Problem
================================
Furthermore, even after I have added the corresponding package to the @INC, it still prompts compile error as below, I have idea why the @INC already mentioned the absolute path as /Kernel/Language, but it sill prompts "can't locate" error.
Description
Can't locate Kernel/Language.pm in @INC (@INC contains: C:/99_Jayenho/Repo/git/otrs/Kernel/Language C:/02_Installed/Perl64/site/lib C:/02_Installed/Perl64/lib)
Resource
Layout.pm
Path Location
/otrs/Kernel/Output/HTML line 15
Type
Perl Problem
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: eclipse development env compile error
is a wrong path in your @INC.C:/99_Jayenho/Repo/git/otrs/Kernel/Language
Add
Code: Select all
C:/99_Jayenho/Repo/git/otrs/
Code: Select all
C:/99_Jayenho/Repo/git/otrs/Kernel/cpan-lib
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: eclipse development env compile error
Terribly appreciated for your so kindly reply. I have fixed this @INC issue, however, after the otrs framework checked out, during the compiling, it is referring to the Kernel/Config.pm file, but for the source code level, it only exists a file named "Kernel/Config.pm.dist", can I just simply copy and paste it and rename it as "Kernel/Config.pm" directly? any configuration else I should be aware of?reneeb wrote:is a wrong path in your @INC.C:/99_Jayenho/Repo/git/otrs/Kernel/Language
AddandCode: Select all
C:/99_Jayenho/Repo/git/otrs/
to your @INCCode: Select all
C:/99_Jayenho/Repo/git/otrs/Kernel/cpan-lib
Re: eclipse development env compile error
I checked the official doc of OTRS, it should be fine if just renaming it. Anyway, thank you very much.jayenho wrote:Terribly appreciated for your so kindly reply. I have fixed this @INC issue, however, after the otrs framework checked out, during the compiling, it is referring to the Kernel/Config.pm file, but for the source code level, it only exists a file named "Kernel/Config.pm.dist", can I just simply copy and paste it and rename it as "Kernel/Config.pm" directly? any configuration else I should be aware of?reneeb wrote:is a wrong path in your @INC.C:/99_Jayenho/Repo/git/otrs/Kernel/Language
AddandCode: Select all
C:/99_Jayenho/Repo/git/otrs/
to your @INCCode: Select all
C:/99_Jayenho/Repo/git/otrs/Kernel/cpan-lib
Re: eclipse development env compile error
I have encountered below strange question while using the EPIC, and then I tried to use command line with perl directly, it throws the same error as well, any idea?jayenho wrote:Terribly appreciated for your so kindly reply. I have fixed this @INC issue, however, after the otrs framework checked out, during the compiling, it is referring to the Kernel/Config.pm file, but for the source code level, it only exists a file named "Kernel/Config.pm.dist", can I just simply copy and paste it and rename it as "Kernel/Config.pm" directly? any configuration else I should be aware of?reneeb wrote:is a wrong path in your @INC.C:/99_Jayenho/Repo/git/otrs/Kernel/Language
AddandCode: Select all
C:/99_Jayenho/Repo/git/otrs/
to your @INCCode: Select all
C:/99_Jayenho/Repo/git/otrs/Kernel/cpan-lib
C:\99_Jayenho\Repo\git\otrs\Kernel\System\Web>perl -c InterfacePublic.pm
Undefined subroutine &Encode::find_encoding called at C:/02_Installed/Perl64/lib
/Encode/Locale.pm line 83.
Compilation failed in require at C:/99_Jayenho/Repo/git/otrs/Kernel/System/Encod
e.pm line 16.
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: eclipse development env compile error
What version of Encode did you install? Run
Code: Select all
perl -MEncode -e "print Encode->VERSION"
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: eclipse development env compile error
C:\Users\jayhe>perl -MEncode -e "print Encode->VERSION"reneeb wrote:What version of Encode did you install? RunCode: Select all
perl -MEncode -e "print Encode->VERSION"
2.49
Actually, I have used the most recent ActiveState's windows installation package directly, that is, "ActivePerl-5.16.3.1603-MSWin32-x64-296746.msi", and also checked the PPM with version 2.49 Encode installed. However, for the EPIC plugin for eclipse, I have used the most recent testing one, that is, "http://e-p-i-c.sf.net/updates/testing", instead of the stable and older release version, is it related?
Re: eclipse development env compile error
Seems very odd to use epic plugin for the otrs integration development, with the command line perl -c for compile, for those pl/pm/t files with compilation ok, it still encounters eclipse build error in the IDE.
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: eclipse development env compile error
What are the error messages now?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: eclipse development env compile error
Still many, but very odd that for those utf-8 encoding error as below screen capture, using command line perl -c works at all, the content is directly downloaded from the otrs github, I have access it with browser too, the encoding error is really there, i.e. line 292 of https://github.com/OTRS/otrs/blob/rel-3 ... /Process.treneeb wrote:What are the error messages now?
And very odd that you can see from the below pic, the line 292 has compiling error, but line 296 has no such error, they both should encounter the encoding error as I think, but using command line perl -c Process.t can pass smoothly, why?
You do not have the required permissions to view the files attached to this post.
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: eclipse development env compile error
That's really odd. Can you check if it works when you change line 292 to
Code: Select all
'Process-' . $RandomID . '-äöüßÄÖÜ€исáéíúóúÁÉÍÓÚñÑ'
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: eclipse development env compile error
Ooops, it really works for this change, no idea the rationale behind, but it finally works anyway, thank you very much, let me check the remaining compiling error then.reneeb wrote:That's really odd. Can you check if it works when you change line 292 toCode: Select all
'Process-' . $RandomID . '-äöüßÄÖÜ€исáéíúóúÁÉÍÓÚñÑ'
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: eclipse development env compile error
I have no idea, toojayenho wrote:Ooops, it really works for this change, no idea the rationale behind, [..]

It would be interesting to know if this is an Eclipse/EPIC error or if one can reproduce such an error in a plain Perl environment.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: eclipse development env compile error
Yap, you mean the usage of double quotation mark and single quotation mark may result in different behavior in the EPIC platform, I guess so, anyway, thanks a lot and let me keep focusing on remaining error then.reneeb wrote:I have no idea, toojayenho wrote:Ooops, it really works for this change, no idea the rationale behind, [..]But that was the only difference between the lines that had the error and the one that were ok.
It would be interesting to know if this is an Eclipse/EPIC error or if one can reproduce such an error in a plain Perl environment.
Re: eclipse development env compile error
Now I am encountering another compiling error, in the script "otrs/scripts/apache2-perl-startup.pl", it will firstly referring to an apache lib as below,
However, I can not grep any source of "Apache2::RequestRec" (package as "mod_perl") from the search CPAN website at all, and I also checked the downloaded file "mod_perl-2.0.8.tar.gz" from other website, and also can not grep the file about "Apache2::RequestRec" as well. I know that this should be related to the apache web server related, but from the point view of eclipse development workspace, how can I bypass it? And even if I have the apache web server installed, what else can I do to get this file work as expected?
Code: Select all
use Apache2::RequestRec;
use ModPerl::Util;
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: eclipse development env compile error
If you want to workaround it, you could create a directory (outside the OTRS project) and include that directory in your @INC paths. Then you create these files in that directory:
RequestRec.pm in subdirectory Apache2:
Util.pm in subdirectory ModPerl:
RequestRec.pm in subdirectory Apache2:
Code: Select all
package Apache2::RequestRec;
1;
Code: Select all
package ModPerl::Util;
1;
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: eclipse development env compile error
I know this workaround, however, it seems that OTRS framework couples with the apache web server quite tightly, and I have also googled and found out that strawberry perl can handle this issue, while e-pic is officially recommending activestate perl but ppm obsolete the support to "mod_perl" directly, I tried the CPAN to download the "mod_perl" package, and also tried to install it with cygwin perl instead, however, it needs to compile and install the apache firstly with apxs support, oh, so complicated...reneeb wrote:If you want to workaround it, you could create a directory (outside the OTRS project) and include that directory in your @INC paths. Then you create these files in that directory:
RequestRec.pm in subdirectory Apache2:Util.pm in subdirectory ModPerl:Code: Select all
package Apache2::RequestRec; 1;
Code: Select all
package ModPerl::Util; 1;
Re: eclipse development env compile error
I have resolved it by referring to the below info:
http://www.apachelounge.com/viewtopic.php?p=25858
http://www.apachelounge.com/viewtopic.php?p=25858
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: eclipse development env compile error
No, but the startup.pl is made for Apache. The rest of the code is webserver independent. You can use other webserver as well (e.g. I run it with Starman behind a nginx proxy).jayenho wrote:I know this workaround, however, it seems that OTRS framework couples with the apache web server quite tightly,
Yes, compiling mod_perl yourself is not the easiest job... However, if you just do development on your machine, I would do the workaround.jayenho wrote: and I have also googled and found out that strawberry perl can handle this issue, while e-pic is officially recommending activestate perl but ppm obsolete the support to "mod_perl" directly, I tried the CPAN to download the "mod_perl" package, and also tried to install it with cygwin perl instead, however, it needs to compile and install the apache firstly with apxs support, oh, so complicated...
This might be helpful as well: http://strawberryperl.com/package/kmx/m ... ME-512.TXT
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: eclipse development env compile error
Noted with many thanks.reneeb wrote:No, but the startup.pl is made for Apache. The rest of the code is webserver independent. You can use other webserver as well (e.g. I run it with Starman behind a nginx proxy).jayenho wrote:I know this workaround, however, it seems that OTRS framework couples with the apache web server quite tightly,
Yes, compiling mod_perl yourself is not the easiest job... However, if you just do development on your machine, I would do the workaround.jayenho wrote: and I have also googled and found out that strawberry perl can handle this issue, while e-pic is officially recommending activestate perl but ppm obsolete the support to "mod_perl" directly, I tried the CPAN to download the "mod_perl" package, and also tried to install it with cygwin perl instead, however, it needs to compile and install the apache firstly with apxs support, oh, so complicated...
This might be helpful as well: http://strawberryperl.com/package/kmx/m ... ME-512.TXT