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

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令，进入源码包目录并解压软件包。

```
cd
/path/to/QDK
&& tar xvf v2.3.12.tar.gz
```


3. 执行以下命令修改安装脚本。

  a. 打开“./InstallToUbuntu.sh”文件。

```
vim ./InstallToUbuntu.sh
```


  b. 按“i”进入编辑模式，注释掉第9、10行的内容，新增第11行的内容。
    修改前：

```
9    apt-get update
10   apt-get install -y build-essential wget bsdmainutils curl python openssl rsync
```


    修改后：

```
9    #apt-get update
10   #apt-get install -y build-essential wget bsdmainutils curl python openssl rsync
11   yum install -y  wget  curl python openssl rsync
```


  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
4. 执行以下命令编译安装QDK。

```
./InstallToUbuntu.sh
./InstallToUbuntu.sh install
```
