Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install the FFTW library on Mac OX X 10.8.

If I execute

./configure --prefix=/usr/local/

in Bash, I get

checking how to get verbose linking output from /usr/local/scisoft//packages/iraf/iraf/unix/hlib// configure: WARNING: compilation failed
checking for Fortran 77 libraries of /usr/local/scisoft//packages/iraf/iraf/unix/hlib//  -L/usr/local/scisoft/lib/' -L/usr/local/scisoft/lib/ -lm
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... configure: error: in `/Users/FiorellaCagnetta/ZEST+/Libraries/fftw-3.3.3':
configure: error: cannot compile a simple Fortran program
See `config.log' for more details

Could you help me?

share|improve this question

I had the same problem. This will fix it - Install gfortran first. I used

brew install gfortran

Then, pass the F77=gfortran parameter to the fftw .configure

share|improve this answer

Do you have any fortran compiler installed (gfortran...)? I mean:

error: cannot compile a simple Fortran program

is kinda clear.

Plus, it is said there: that Fink have fftw3 available (

share|improve this answer
So what do you suggest to do? try to install a fortran compiler? – user196003 Feb 6 '13 at 13:59

You must log in to answer this question.