Version 4 (modified by briadam, 7 years ago) (diff)

Removing generic information from autotools page

Compiling DAKOTA (Autotools)

Mac OS X

  • Install Xcode tools (believed optional, but likely needed for graphics support)
  • Install a compiler toolchain with Fortran90 support. We've used MacPorts? and the IBM gfortran download as well, but the whole gcc suite from seems to work.
  • Make sure new compilers are on head of PATH, e.g., export PATH=/usr/local/bin:$PATH
  • Configure, make, install:
    ./configure CC=gcc CXX=g++ F77=gfortran FC=gfortran --prefix=/path/to/installdir --disable-mpi
    make install
  • You should not need --without-graphics if XCode is installed, but some users can't get it to work


Note to run DAKOTA on Windows, you need not install MSYS or Cygwin. To compile from source, you likely need one of the other. Here are some processes that have worked for our development team (may need modification for your environment).

  • Install Cygwin 1.7, including packages
    • Devel (gcc-4.3.x recommended): gcc4-core, gcc4-gfortran, gcc4-g++, make
    • Math (latest okay): liblapack, liblapack-devel
    • Perl 5.x (otherwise --disable-export-makefiles for Teuchos
    • Python 2.x (otherwise --without-acro)
    • X11 (if graphics supported desired):
  • I installed on Windows 7, 64-bit and the compatibilty checker asked for reinstall, which I did
  • Extract source, configure, and make. If you only have one compiler version installed, you likely can omit -4 from each compiler below
    tar xzf Dakota_5_1.src.tar.gz && mv Dakota Dakota.5.1.cygwin && cd Dakota.5.1.cygwin
    ./configure CC=gcc-4 CXX=g++-4 F77=gfortran-4 FC=gfortran-4 --prefix=/c/Dakota/install.cygwin --disable-mpi --without-graphics
    make -j 2
    make install


Linux (RHEL 6.1)


  • We compile with the stock gcc-4.4.x
  • Install linear algebra RPMS: blas blas-devel lapack lapack-devel
  • Optionally install MPI RPMS: openmpi openmpi-devel
  • Optionally install graphics RPMS: lesstif lesstif-devel libX11 libXau libXext libXmu libXmu-devel libXp libXp-devel libXpm libXpm-devel


export PATH=/usr/lib64/openmpi/bin:$PATH  # if using MPI
./configure CC=gcc CXX=g++ F77=gfortran FC=gfortran


  • make.exe Download (1.5 MB) - added by briadam 6 years ago. Make for Cygwin built on Win7