---
title: 安装METIS
description: "1. 执行以下命令进入metis安装路径。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kylin_kunpeng_fvcom_41_02_0010.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kylin_kunpeng_fvcom_41_02_0010.html
indexId: f604ebac34e427e25d4f8b63b19a18bebf4a6c06bb88c5ad33e3e57e0c1348bb77
---
# 安装METIS

#### 操作步骤

1. 执行以下命令进入metis安装路径。

```
cd
/path/to/FVCOM/FVCOM4.1/METIS_source
```


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

```
tar -zxvf metis.tgz
cd metis
sed -i 's/log2/log2_function/g' *.*
```


3. 执行以下命令创建相应目录。

```
mkdir -p
/path/to/FVCOM/FVCOM4.1/FVCOM_source/libs/install/lib
mkdir -p
/path/to/FVCOM/FVCOM4.1/FVCOM_source/libs/install/include
mkdir -p
/path/to/FVCOM/FVCOM4.1/FVCOM_source/libs/install/bi
n
```


4. 执行以下命令编译metis库。

```
make
make install
```
