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…