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

#### 操作步骤

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

```
cd
/path/to/MRBAYES
/MrBayes
```


3. 执行以下命令编译。

```
./configure --prefix=
/path/to/MRBAYES
/mybayes
make
make install
```
