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

#### 操作步骤

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

```
cd
/path/to
/sparsehash
```


3. 执行以下命令解压安装包。

```
tar xvf sparsehash-2.0.4.tar.gz
cd sparsehash-sparsehash-2.0.4
```


4. 执行以下命令进行编译安装。

```
./configure --prefix=
/path/to/sparsehash
make -j
make install
```
