What I did is
1) Unpack and mount the image by clicking on the file:
"foam-extend-3.0.sparseimage.zip"
3) cd foam
4) ln -s /Volumes/foam-extend-3.0 .
5) . foam-extend-3.0/etc/basic
6)run some tutorials
the error message was "Segmentation fault: 11"