略
2、设置安装目录创建鲲鹏GCC安装目录(这里以/opt/aarch64/compiler为例)
mkdir -p /opt/aarch64/compil
将鲲鹏GCC压缩包拷贝到安装目录
cp -rf gcc-9.3.1-2021.03-aarch64-linux.tar.gz /opt/aarch64/compil
3、进入压缩包目录,执行命令解压缩软件包。tar -xf gcc-9.3.1-2021.03-aarch64-linux.tar.gz
4、配置环境变量,有编辑~/.bash_profile文件在~/.bash_profile文件其末尾添加如下内容
export PATH=/opt/aarch64/compiler/gcc-9.3.1-2021.03-aarch64-linux/bin:$PATHexport INCLUDE=/opt/aarch64/compiler/gcc-9.3.1-2021.03-aarch64-linux/include:$INCLUDEexport LD_LIBRARY_PATH=/opt/aarch64/compiler/gcc-9.3.1-2021.03-aarch64-linux/lib64:$LD_LIBRARY_PATH