---
title: 安装BLAS
description: 1. 使用PuTTY工具，以root用户登录服务器。
url: "https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengmpbmeep_02_0006.html"
---

# 安装BLAS

#### 操作步骤

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

```
cd
/path/to/SRC
tar -xvf blas.tgz
```


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

```
cd BLAS-3.8.0
```


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

```
`which gfortran` -c -O3 -fomit-frame-pointer -funroll-loops *.f
ar rv libblas.a *.o
```


5. 执行以下命令将编译好的静态库移至规划目录。

```
cp libblas.a
/path/to/DEPENDENCIES
/lib/
```
