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

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令安装Minimap2的依赖库和工具。

```
yum install wget git gcc-c++ zlib -y
```


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

```
cd
/path/to/MINIMAP2
unzip minimap2-master.zip
```


4. 执行以下命令编译Minimap2。由于鲲鹏是兼容ARM V8 64位指令集，因此编译方式如下。

```
cd
/path/to/MINIMAP2
/
minimap2-master
make arm_neon
=1 aarch64=1
```


5. 执行以下命令查看Minimap2的版本信息。

```
cd
/path/to/MINIMAP2
/
minimap2-master
./minimap2 --v
```


  回显显示如下信息，表示编译正常。

```
2.17-r974-dirty
```
