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

#### 操作步骤

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

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


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

```
cd fftw-3.3.8
```


4. 执行以下命令进行配置。

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


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

```
make -j 128
make install
```


6. 执行以下命令设置主程序安装时需要的FFTW环境变量。

```
export CPATH=
/path/to/FFTW
/include:$CPATH
```
