Install Linux / MacOSX

The most recent Linux version of DAKOTA is built on Red Hat Enterprise Linux 6.3. It should also run on other Linux distributions that maintain binary compatibility with RHEL, such as CentOS. Users of other Linux distributions and (non-Mac) *nix OSes may find it necessary to build DAKOTA from source.

The Mac binaries are built on OS X 10.5.8.

  1. Prepare your system by installing required dependencies. For a RHEL 6.3 system, these can be obtained from the Yum repositories by executing the command:
    sudo yum install boost boost-system boost-signals boost-regex boost-filesystem \
    blas lapack openmpi openmotif libX11 libXau libXext libXmu libXp libXpm
    The Mac OS X version of DAKOTA comes packaged with the libraries it requires.
  2. Extract the DAKOTA archive file in a suitable install location, e.g. /home/myusername. If you have root access, you may extract the archive in a shared directory, e.g. /usr/local.
  3. Make sure your OS can find the DAKOTA executables and libraries.
    For Bash shell:
    1. Open the Bash startup file in your home folder using your favorite text editor. On Linux, this is ~/.bashrc. On Mac, it's ~/.bash_profile.
    2. On Linux and Mac, add the following line, replacing $INSTALL_DIR with the absolute path to your installation directory, e.g. /home/myusername or /usr/local/Dakota.
      export PATH=$PATH:$INSTALL_DIR/bin:$INSTALL_DIR/test
    3. On Linux only, add the following line, replacing $INSTALL_DIR as appropriate.
      export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INSTALL_DIR/bin:$INSTALL_DIR/lib
    4. On Mac OS only, add the following line, replacing $INSTALL_DIR as appropriate.
      export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$INSTALL_DIR/bin:$INSTALL_DIR/lib
    5. Save and close the file. Close and reopen the terminal to activate the changes in your environment.
    For C shell:
    1. Open the csh startup file in your home folder (~/.cshrc) using your favorite text editor.
    2. On Linux and Mac, add the following line, replacing ${INSTALL_DIR} with the absolute path to your installation directory, e.g. /home/myusername or /usr/local/Dakota.
      setenv PATH "${PATH}:${INSTALL_DIR}/bin:${INSTALL_DIR}/test"
    3. On Linux only, add the following line, replacing $INSTALL_DIR as appropriate.
      setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${INSTALL_DIR}/bin:${INSTALL_DIR}/lib"
    4. On Mac OS only, add the following line, replacing $INSTALL_DIR as appropriate.
      setenv DYLD_LIBRARY_PATH "${DYLD_LIBRARY_PATH}:${INSTALL_DIR}/bin:${INSTALL_DIR}/lib"
    5. Save and close the file. Close and reopen the terminal to activate the changes in your environment.