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

#### 操作步骤

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

```
tar zxvf ncbi-rmblastn-2.2.28-src.tar.gz
```


3. 执行以下命令进入解压后目录。

```
cd ncbi-rmblastn-2.2.28-src
```


4. 执行以下命令修改“configure”文件。

  a. 打开“configure”文件。

```
vi src/build-system/configure
```


  b. 按“i”进入编辑模式，修改为第4749行的内容。

```
4746 if test "$GCC" = "yes" ; then
4747    compiler_ver="`$real_CXX -dumpversion 2>&1`"
4748    case "$compiler_ver" in
4749      2.95* | 2.96* | 3.* | 4.* | 7.*)
4750        compiler="GCC"
4751        ncbi_compiler="GCC"
4752        ncbi_compiler_ver="$compiler_ver"
```


    执行4.a之后，按“Esc”键，输入:set nu，按“Enter”即可显示出行号。

  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
5. 执行以下命令编译安装。

```
./configure --prefix=
/path/to/rmblas
--build=aarch64-unknown-linux-gnu --without-debug --with-mt CFLAGS=-Wno-narrowing CXXFLAGS=-Wno-narrowing
make -j
make -j install
```


6. 执行以下命令加载环境变量。

```
export PATH=
/path/to/rmblast
/bin:$PATH
```
