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

#### 操作步骤

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版本信息，说明安装成功。
