Use the following steps to download and install Arm Compiler for Linux, which includes:
- Arm C/C++ Compiler
- Arm Fortran Compiler
- Arm Performance Libraries.
To use Arm Compilers and Arm Performance Libraries, you need a valid license for Arm Allinea Studio.
If you already have a license, use the following instructions to add it to your system:
Learn more about Arm Allinea Studio licensing.
Contact Arm support if you need more help or advice about the type of license you require.
Download packageDownload the Arm Compiler for HPC package from the Arm Allinea Studio downloads page.
Extract the downloaded package:
tar -xvf <package_name>
<package_name>with the full name of the downloaded package.
Change to the package directory to see the extracted files:
Run the installation script as a privileged user:
su root Password: ******** ./<package_name>.sh
Packages are unpacked to
Alternatively, if you do not have sudo rights or wish to install to a specific location, you can use the
./<package_name>.sh --install-to <install_dir>
Note: This results in a user-only installation along with the relevant module files. The included uninstall.sh helper script does not uninstall this type of installation.
The installer displays the EULA and prompts you to agree to the terms. To agree, type 'yes' at the prompt.
Get started with Arm C/C++ Compiler
See Getting started with Arm C/C++ Compiler which shows how to compile and generate executables that can run on any 64-bit Armv8-A architecture.
Get started with Arm Fortran Compiler
See Getting started with Arm Fortran Compiler which shows how to install and compile Fortran code using different optimizations levels, and generate an executable.
Get started with Arm Performance Libraries
See Getting started with Arm Performance Libraries which guides you through dynamically modifying your user environment on Linux using environment modules, and then performing an example program compilation and run.
For convenience, this package includes a script that can be used to easily uninstall Arm Compiler and Libraries,
uninstall.sh. This script is located in:
Run this script to uninstall all the packages supplied as part of this suite. You will need to uninstall any dependent packages outside of this suite, manually.
If you used the
--install-tooption provided by the installer, you will need to uninstall the packages by manually removing their directories.
If you have multiple versions of Arm Compiler for HPC installed that depend on the same GCC version, running the
uninstall.shscript will fail. Instead, remove the packages manually, using the Package Manager, or modify the script to prevent removal of the GCC package.