FFTW Logo
Go back to the FFTW download page.

FFTW Packages for Linux

Although it is trivially easy to compile FFTW from source on Linux, some people may prefer to use Redhat or Debian packages, as this allows them to more easily keep track of what they have installed on their system, update it, uninstall it, and so on.

We have put together Redhat packages for FFTW (RPMs), and the Debian project also maintains Debian packages.

Debian Packages

Debian packages of FFTW can be found at:

We are grateful to James A. Treacy for maintaining the Debian packages of FFTW.

RPM Packages for FFTW 2.x

(Note that most Linux distributions, e.g. Redhat, come with their own FFTW RPMs; we suggest using the ones that came with your system.)

The Redhat package we've created installs both the uniprocessor and threads versions of FFTW in both double and single precision. Both shared and static libraries are included. (Note: The single-precision version of the library is installed with an "s" prefix, as described in the manual. The double-precision version is installed with the standard name, without a prefix. This is different from the RPMs for version 2.1.2.)

First, there is the source package. You can compile this for your system by using rpm --rebuild on this source RPM, and then install the resulting binary packages (in /usr/src/redhat/RPMS/arch) with rpm -i. This is the most reliable way to install the FFTW package. The source package can be found at:

Note that this source package builds two binary packages, according to the Redhat convention: fftw and fftw-devel. The former only includes the shared libraries (the minimum needed by programs that link with FFTW) and the latter includes header files, documentation, etcetera (needed if you want to develop or compile programs using FFTW).

Additionally, we have binary packages. Since FFTW's compilation script automatically tries to pick compiler flags that are best for your system, you probably should compile from source if you have a system different from the ones we compiled on. You will also need to recompile if you have a different version of the C library, etcetera.

Note: Like our source distribution, these packages install everything under /usr/local, as required by the Linux Filesystem Hierarchy Standard. However, they are relocatable: to install under /usr, use rpm --prefix /usr -i instead of rpm -i. Also, you may need to add "/usr/local/lib" to your /etc/ld.so.conf file and re-run ldconfig (as root) so that Linux will find the FFTW shared libraries.


Go back to the FFTW download page.