Disclaimer: On RHEL/CENTOS needed packages might be missing.
The directions below cover installing FreeFem++ on Ubuntu machines.
For RHEL/CENTOS, the following packages are needed:
SuperLU-devel openmpi-devel mesa-libGL-devel freeglut-devel mesa-libGLU-devel,gsl-devel m4 bison patch cmake octave-devel libpng-devel libXt-devel freeglut-devel
OpenMPI module needs to be loaded before configure and compile.
module load mpi/openmpi-x86_64
Enable MPI when configure is run.
./configure –enable-download –with-mpi=mpic++
Missing packages at this point will have to be downloaded.
To verify everything after make, use make check. The output should be examined closely.