On RHEL7 (most recently 7.8), we satisfied Dakota's dependencies with the following. These are all from the standard package or EPEL (yum install epel-release) repositories and installed with yum install.
Core development tools: GCC 4.8.5, Java 1.8, Python 2.7.5, Perl 5.16.3
yum install cmake3 gcc gcc-c++ gcc-gfortran java-1.8.0-openjdk-devel git cmake python perl
Libraries/runtimes: OpenMPI 1.10.3, GSL 1.15. (As of Dakota 6.13, Boost 1.69 from the EPEL repo.)
yum install blas blas-devel lapack lapack-devel boost169 boost169-devel openmpi openmpi-devel gsl gsl-devel
If building documentation
yum install doxygen texlive-collection-latexrecommended
(Not currently building with X Windows features)
When configuring use cmake3 and specify Boost include/library directories to point to, e.g., /usr/include/boost169.