---
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"
---

# 安装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
```
