Fail to run Perl project
Hi all,
i create a build configuration and choose 'Ant' to run test for a perl project which is download from http://search.cpan.org/CPAN/authors/id/T/TH/THALJEF/Perl-Critic-1.118.tar.gz .
I also download the TAP::Formatter::TeamCity and add its build.xml to the Perl::Critic project.
Then in the build step, i choose 'Ant' to be the Runner Type. Then i run the project in team city, i encounter this error below:
Build errors
[17:00:19]build
[17:00:19][build] module.build
[17:00:19][module.build] sequential
[17:00:19][sequential] exec
[17:00:20][exec] exec returned: 2
[17:00:20][module.build] The following error occurred while executing this line: /root/BuildAgent/work/1ccfebe3a6103ee1/build.xml:42: exec returned: 2
Who can shoot me how to fix this? Are there anything i miss to 'run' a perl project?
Thanks in advance,
Hou
Please sign in to leave a comment.
attach more log here and i have no idea about B/Keywords.pm.
[14:33:15]Checking for changes
[14:33:15]Publishing internal artifacts (3s)
[14:33:15]Clearing temporary directory: /root/BuildAgent/temp/buildTmp
[14:33:15]Checkout directory: /root/BuildAgent/work/1ccfebe3a6103ee1
[14:33:15]Updating sources: agent side checkout
[14:33:16]in directory: /root/BuildAgent/work/1ccfebe3a6103ee1
[14:33:18]init
[14:33:18]build
[14:33:18][build] module.build
[14:33:18][module.build] sequential
[14:33:18][sequential] exec
[14:33:18][exec] Building Perl-Critic
[14:33:18][exec] * WARNING: Configuration was initially created with Module::Build
[14:33:18][exec] version '0.4' but we are now using version '0.4001'.
[14:33:18][exec] If errors occur, you must re-run the Build.PL or Makefile.PL script.
[14:33:18][exec] Can't locate B/Keywords.pm in @INC (@INC contains: inc /usr/lib6
[14:33:18][exec] 4/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at t/Variables/RequireLocalizedPunctuationVars.run.PL line 16.
[14:33:18][exec] BEGIN failed--compilation aborted at t/Variables/RequireLocalizedPunctuationVars.run.PL line 16.
[14:33:18][exec] t/Variables/RequireLocalizedPunctuationVars.run.PL failed at /usr/lib/perl5/site_perl/5.8.8/Module/Build/Base.pm line 2963.
[14:33:19][exec] exec returned: 2
[14:33:19][module.build] The following error occurred while executing this line:
/root/BuildAgent/work/1ccfebe3a6103ee1/build.xml:42: exec returned: 2
[14:33:19]Process exited with code 1
[14:33:19]Ant output
[14:33:19][Ant output] Buildfile: /root/BuildAgent/work/1ccfebe3a6103ee1/build.xml
[14:33:19][Ant output]
[14:33:19][Ant output] init:
[14:33:19][Ant output]
[14:33:19][Ant output] build:
[14:33:19][Ant output] [exec] Building Perl-Critic
[14:33:19][Ant output] [exec] * WARNING: Configuration was initially created with Module::Build
[14:33:19][Ant output] [exec] version '0.4' but we are now using version '0.4001'.
[14:33:19][Ant output] [exec] If errors occur, you must re-run the Build.PL or Makefile.PL script.
[14:33:19][Ant output] [exec] Can't locate B/Keywords.pm in @INC (@INC contains: inc /usr/lib6
[14:33:19][Ant output] [exec] 4/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at t/Variables/RequireLocalizedPunctuationVars.run.PL line 16.
[14:33:19][Ant output] [exec] BEGIN failed--compilation aborted at t/Variables/RequireLocalizedPunctuationVars.run.PL line 16.
[14:33:19][Ant output] [exec] t/Variables/RequireLocalizedPunctuationVars.run.PL failed at /usr/lib/perl5/site_perl/5.8.8/Module/Build/Base.pm line 2963.
[14:33:19][Ant output]
[14:33:19][Ant output] BUILD FAILED
[14:33:19][Ant output] /root/BuildAgent/work/1ccfebe3a6103ee1/build.xml:71: The following error occurred while executing this line:
[14:33:19][Ant output] /root/BuildAgent/work/1ccfebe3a6103ee1/build.xml:42: exec returned: 2
[14:33:19][Ant output]
[14:33:19][Ant output] Total time: 1 second
i got a good progress that is the Perl project has no error but a warning after running.
What i did is to install many many modules like: Module-Build,Module-CoreList-2.69, Module-Load-Conditional-0.50,Sub-Uplevel-0.24, TAP-Formatter-TeamCity-0.04,TeamCity-BuildMessages-v0.999.3,Test-Exception-0.31,IPC-Cmd-0.78,IO-Zlib-1.10,IO-Compress-2.052 ,ExtUtils-ParseXS-3.15 ,ExtUtils-Install-1.54 ,ExtUtils-CBuilder-0.280205 ,Archive-Tar-1.88, etc.
The log of Team City is :
[18:42:02]build (3s)
[18:42:02][build] module.build (3s)
[18:42:02][module.build] sequential (3s)
[18:42:02][sequential] exec (3s)
[18:42:02][exec] Building Perl-Critic
[18:42:02][exec] * WARNING: Configuration was initially created with Module::Build
[18:42:02][exec] version '0.4' but we are now using version '0.4001'.
[18:42:02][exec] If errors occur, you must re-run the Build.PL or Makefile.PL script.
[18:42:02][exec]
[18:42:02][exec]
[18:42:02][exec] Generating t/Variables/RequireLocalizedPunctuationVars.run.
[18:42:02][exec] Done.
[18:42:02][exec]
[18:42:02][exec]
[18:42:02][exec]
[18:42:02][exec] Skipping generating tests because it doesn't look like we're in an author environment.
[18:42:02][exec]
[18:42:06]Process exited with code 0
[18:42:06]Publishing internal artifacts
[18:42:06][Publishing internal artifacts] Sending build.finish.properties.gz file
[18:42:06]Build finished
This issue is already be fixed, please refer to this topic <<How does TeamCity work for perl project?>> to get any detail.
This topic 'How does TeamCity work for perl project?' has my solution.