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

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 进入目录并解压。

```
cd
/path/to/cmake
tar xvf cmake-3.22.5-linux-aarch64.tar.gz
```


3. 配置cmake的环境变量。

```
export PATH=
/
path/to
/
cmake
/cmake-3.22.5-linux-aarch64/bin
:$PATH
```
