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

#### 操作步骤

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