Disclaimer: On RHEL/CENTOS needed packages might be missing.
Ubuntu
The directions below cover installing FreeFem++ on Ubuntu machines.
http://www.freefem.org/ff++/linux.php
RHEL/CENTOS
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.
download/getall
To verify everything after make, use make check. The output should be examined closely.