While onboarding the application using Code Reader, following error is seen.
INFO perl: error: Cannot run program "C:\Users\AppData\Local\CAST Highlight Code Reader\strawberry\perl\bin\perl.exe": CreateProcess error=2, The system cannot find the file specified
ERROR AnalysisPipeline: Discover failed
java.lang.Exception: Discovery child process failed with exit status -1
Workaround or Action Plan
This could be due to not specifying the Perl installation directory
or
Check if perl.exe is present in the expected path as per the error message. Otherwise please point it using the below flag.
--perlInstallDir (optional)
Directory of perl installation (default: C:\Program Files\CAST\HighlightAgent\COTS\strawberry-perl-5.12.3.0).
Please also refer Highlight Automated Code Scan (Command Line)
NB: To locate the Installation Path where perl is currently installed, in Windows
- Open Command Prompt or PowerShell and type the following command to find the path to Perl:
where perl - This will return the full path to the Perl executable. For example, it might return:
C:\Strawberry\perl\bin\perl.exe
Path to Perl (--perlInstallDir) should not contain the name of the .exe.
Related Articles
CAST HIGHLIGHT - CLI - Scan can't find the perl executable
CAST HIGHLIGHT - CLI - Error code 3 - Command Line techno discovery error
CAST HIGHLIGHT - Code Reader - ERROR console: (3) Command Line techno discovery error
CAST HIGHLIGHT - Code reader - Setup - Java not detected on your system. Please install openJDK 11
Additional Resources
CAST Highlight Troubleshooting Guides
CAST Highlight Product Documentation
Zendesk Ticket Number
48243, 49099
Comments