For developers focused on ensuring the robustness and security of automotive software, utilizing a reliable code scan tool is crucial. If you’re using a Cast Code Scan Tool for in-depth analysis, it’s essential to properly configure your environment. This guide outlines the necessary prerequisites for different operating systems to ensure your cast code scan tool operates smoothly and efficiently.
Prerequisites for Windows
To run the cast code scan tool on Windows, ensure you have Java 11 or higher installed. It’s highly recommended to first install CAST Highlight’s Code Reader. This package conveniently embeds the required Perl 5.36.3.1 binaries, simplifying the setup process. You can download the Code Reader directly from your Highlight user account within the APPLICATION SCANS page.
Alternatively, for a more manual setup, you can install the specific Perl distribution (Strawberry MSI Installer) and then manually install the following Perl modules using CPAN commands:
cpan install Digest::SHA
cpan install XML::LibXML
cpan install JSON
cpan install Time::HiRes
cpan install Math::BigInt
cpan install Win32::LongPath
These modules are vital for the cast code scan tool to perform its analysis effectively on Windows systems.
Prerequisites for Linux Debian/Ubuntu
For Linux Debian and Ubuntu distributions, verify that the following components are installed on your system. You’ll need Perl 5 (tested and compatible with version 5.36.3.1). Additionally, install the libjson-perl
and libxml-libxml-perl
libraries.
You can check your Perl version and installed libraries using these commands in your terminal:
perl -v
dpkg –get-selections libxml-libxml-perl libjson-perl
Also, confirm you have Java 11 or above installed:
java -version
These steps ensure your Debian/Ubuntu environment is ready for utilizing the cast code scan tool.
Prerequisites for Linux – RHEL/CENTOS based systems
On Red Hat Enterprise Linux (RHEL) and CentOS-based systems, you need to install specific Perl libraries using yum. Execute the following commands to install the necessary components:
yum -y install perl-Digest-SHA
yum -y install perl-JSON
yum -y install perl-XML-LibXML
yum -y install perl-Time-HiRes
yum -y install perl-Math-BigInt
These commands will install the required Perl modules, preparing your RHEL/CENTOS system for effective cast code scanning.
Prerequisites for MacOS
For macOS users, the recommended approach for running the command line cast code scan tool is by utilizing the provided Docker image. This containerized environment simplifies setup and ensures consistency.
If you prefer a direct installation on macOS, ensure you have Perl installed and then use CPAN to install the necessary modules:
perl -v
cpan install XML::LibXML
cpan install JSON
Using the Docker image, however, is generally easier and avoids potential compatibility issues on macOS.
For SSO/SAML Users
If your organization uses Single Sign-On (SSO) or Security Assertion Markup Language (SAML) for authentication, you will need to use user tokens to authenticate and upload result files to the CAST Highlight platform when using the cast code scan tool. Refer to the documentation on user token management for detailed instructions on how to generate and utilize these tokens.
By ensuring these prerequisites are met based on your operating system, you’ll be well-equipped to leverage your cast code scan tool for comprehensive automotive software analysis, leading to more secure and reliable vehicle systems.