Installing the BiSheng Compiler
Procedure
- Use PuTTY to log in to the server as the root user.
- Download the BiSheng Compiler.
wget https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_compiler/bisheng-compiler-1.3.3-aarch64-linux.tar.gz
- Create an installation directory.
mkdir -p /opt/compiler
- Copy the downloaded installation package to the installation directory.
cp -r bisheng-compiler-1.3.3-aarch64-linux.tar.gz /opt/compiler
- Go to the installation directory and decompress the installation package.
cd /opt/compiler tar -zxvf bisheng-compiler-1.3.3-aarch64-linux.tar.gz
- Set the environment variables of the BiSheng Compiler.
export PATH=/opt/compiler/bisheng-compiler-1.3.3-aarch64-linux/bin:$PATH export LD_LIBRARY_PATH=/opt/compiler/bisheng-compiler-1.3.3-aarch64-linux/lib:$LD_LIBRARY_PATH export CC=clang CXX=clang++ FC=flang
- View the BiSheng Compiler version.
clang -v
If the command output contains the BiSheng Compiler version information, the installation is successful.
Parent topic: Configuring the Compilation Environment