Installing OpenBLAS
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following commands to decompress the OpenBLAS installation package:
tar -xvf OpenBLAS-0.3.7.tar.gz
- Run the following command to switch to the directory generated after the package is decompressed:
cd OpenBLAS-0.3.7
- (Optional) If the GCC compiler version is not GNU 9 or later, modify the Makefile.arm64 file and run the gcc -v command to query the GCC compiler version.
- Open Makefile.arm64.
vi Makefile.arm64
- Press i to enter the insert mode and delete the content in the red box shown in the following figure:

- Press Esc, type :wq!, and press Enter to save the changes and exit.
- Open Makefile.arm64.
- Run the following commands to install OpenBLAS:
make BINARY=64 FC=/usr/bin/gfortran USE_THREAD=1 make PREFIX=/path/to/OPENBLAS install
- Run the following command to set the OpenBLAS environment variable:
export LD_LIBRARY_PATH=/path/to/OPENBLAS/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment