While running a scan got the following error with the cmd tool:
INFO perl: out: BEGIN failed--compilation aborted at perl/Analyse.pl line 57.
ERROR AnalysisPipeline: Analysis failed
java.lang.Exception: Analysis child process failed with exit status 2
Details
Check whether all the necessary Perl modules as mentioned in the attached Readme.txt file are installed.
Prior to using the command line in Windows, it is preferable to install CAST Highlight’s Code Reader on your machine as it embeds the required Perl 5.36.3.1 binaries. Alternatively, you can install the required Perl distribution (Strawberry) and modules (see below) if you don’t want to install the Code Reader.For more details please refer Highlight Automated Code Scan (Command Line)
Related Articles
Highlight Automated Code Scan (Command Line)
Ticket
29360, 49144
Preq of Agent should be installed , --perInstallDir "...\strawberry\perl" path should be mentioned correctly to avoid this error
Hello Lakshmi S,
Thanks for the Comment.
As per https://doc.casthighlight.com/product-tutorials-third-party-tools/automated-code-scan-command-line/ it is an alternate option.
" Prior using the command line, it is preferable to install the Highlight Local Agent on your machine, in order to embed the required Perl binaries. Alternatively, you can install the required Perl distribution (Strawberry) if you don’t want to install the Local Agent. "
Regards
Alex