---
title: 安装毕昇编译器
description: "1. 使用PuTTY工具，以root用户登录服务器。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kylin_kunpeng_soapsnp_02_0006.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kylin_kunpeng_soapsnp_02_0006.html
indexId: 2ffe4d4bd2775393945e4fd96c72ac5ee3820e341136a406b9de75578cf89a7f76
---
# 安装毕昇编译器

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令，安装毕昇编译器。

```
wget https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_compiler/bisheng-compiler-2.1.0.1.B002-aarch64-linux.tar.gz
mkdir -p
/opt/compiler
cp -r bisheng-compiler-2.1.0.1.B002-aarch64-linux.tar.gz /opt/compiler
cd
/opt/compiler
tar -zxvf bisheng-compiler-2.1.0.1.B002-aarch64-linux.tar.gz
```


3. 执行以下命令，配置毕昇编译器的环境变量。

```
export PATH=
/opt/compiler/bisheng-compiler-2.1.0.1.B002-aarch64-linux/bin
:$PATH
export LD_LIBRARY_PATH=
/opt/compiler/bisheng-compiler-2.1.0.1.B002-aarch64-linux/lib
:$LD_LIBRARY_PATH
export CC=clang CXX=clang++ FC=flang
```


4. 执行以下命令，验证安装结果。

```
clang -v
```


  若返回结果已包含bisheng compiler版本信息，说明安装成功。
