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

#### 操作步骤

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

```
tar -xvf fftw-3.3.8.tar.gz
```


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

```
cd fftw-3.3.8
```


4. 执行以下命令运行bootstrap.sh脚本。

```
./bootstrap.sh
```


5. 执行以下命令进行编译配置。

```
./configure --prefix
=
/path/to/FFTW
--enable-shared --enable-static --enable-fma --enable-neon --enable-float
```


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

```
make -j 96
make install
```


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

```
export PATH=
/path/to/FFTW
/bin:$PATH
export LD_LIBRARY_PATH=
/path/to/FFTW
/lib:$LD_LIBRARY_PATH
```
