Installation from a pkg file is standard,
on precompile version FreeFem++-3.60-MacOS_10.13.pkg to use petsc/slepc you need to install XQuartz form XQuartz-2.7.11.dmg
Take the file from and download The textmate 2 editor is a good editor for Mac 10.7 or better, download from macromates.com and install it, when get the
textmate freefem++ syntax from www.freefem.org/ff++/Textmate2-ff++.zip (version nov. 2107) unzip Textmate2-ff++.zip and follow the explanation given in file \texttt{How\_To.rtf}. Please read the README_MAC form the distribution for the full infomation Take the file from and download remark, all examples and documentation are in the directory file:///usr/local/share/freefem++ the library install file are in (In progress (May 2018 FH) ) To compile a full version of FreeFem++ under MacOS --------------------------------------------------------------------------- First download the tar.gz file contening source from or you can get the latest source from an anonymous git SCM copy with the following unix shell commands : # git clone https://github.com/FreeFem/FreeFem-sources ff++ Under Hight Sierra or better (10.13) 2015 ( xcode 9.3 form scratch) ------------------------------------------------- remark: All line beginning by # are shell command in terminal. 1) install xcode , 2) to install the xcode command line tools # gcc answer to the dialogue box to check after # clang++ -v Apple LLVM version 9.1.0 (clang-902.0.39.1) Target: x86_64-apple-darwin17.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin 3) install ifort or gfortran with brew installer 4) install mpich or openmpi form the source get : http://www.mpich.org/static/downloads/3.1.3/mpich-3.2..tar.gz or https://www.open-mpi.org/software/ompi/v3.0/downloads/openmpi-3.0.1.tar.gz un tar and: # ./configure 'F77=gfortran' 'FC=gfortran' 'CC=clang' 'CXX=clang++' # make # sudo make install remark: you can no use precompile version because the fortran in not correct. 5) install gsl use homebrew (http://brew.sh ) or do: # curl -O http://git.savannah.gnu.org/cgit/gsl.git/snapshot/gsl-release-2-4.tar.gz # tar zxvf gsl-release-2-4.tar.gz # cd gsl-release-2-4.tar.gz #./configure CC=clang # make # sudo make install 6) Install git from the web https://git-scm.com/downloads /span> 7) Download freefem++ # git clone https://github.com/FreeFem/FreeFem-sources ff++ 9) install autoconf and automake now not in xcode I use the macport distribution form http://www.macports.org or the home brew distribution from http://brew.sh # sudo port install autoconf # sudo port install automake and to build the file ./configure with automake/autoconf do # cd ff++ # autoreconf 9bis) Or untar AutoGeneratedFile.tar.gz # cd ff++ # tar zxvf AutoGeneratedFile.tar.gz 10) compilation of freefem++ # cd ff++ # ./configure -—enable-download # make # sudo make install (Out of Date ) To compile a full version of FreeFem++ under MacOS --------------------------------------------------------------------------- First download the tar.gz file contening source from or you can get the latest source from an anonymous git SCM copy with the following unix shell commands : # git clone https://github.com/FreeFem/FreeFem-sources ff++ Under Mavericks or better (10.9,10.10) 2015 ( xcode 6.1.1 form scratch) ------------------------------------------------- remark: All line beginning by # are shell command in terminal. 1) install xcode 6.1.1 , 2) to install the xcode command line tools # gcc answer to the dialogue box to check after # gcc -v Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix 4) install gcc-4.9 form http://hpc.sourceforge.net # curl -O http://prdownloads.sourceforge.net/hpc/gfortran-4.9-bin.tar.gz?download # sudo tar zxvf gfortran-4.9-bin.tar.gz -C / 5) install tex from ctan http://mirrors.ctan.org/systems/mac/mactex/MacTeX.pkg 6) install mpich or openmpi form the source get : http://www.mpich.org/static/downloads/3.1.3/mpich-3.1.3.tar.gz or http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.bz2 un tar and: # ./configure 'F77=gfortran' 'FC=gfortran' 'CC=clang' 'CXX=clang++' # make # sudo make install remark: you can no use precompile version because the fortran in not correct. 7) install gsl use homebrew (http://brew.sh ) or do: # curl -O http://ftp.gnu.org/gnu/gsl/gsl-1.16.tar.gz # tar zxvf gsl-1.16.tar.gz # cd gsl-1.16. #./configure CC=clang # make # sudo make install 6) Install git from the web https://git-scm.com/downloads /span> 7) Download freefem++ # git clone https://github.com/FreeFem/FreeFem-sources ff++ 9) install autoconf and automake now not in xcode I use the macport distribution form http://www.macports.org or the home brew distribution from http://brew.sh # sudo port install autoconf # sudo port install automake and to build the file ./configure with automake/autoconf do # cd ff++ # autoreconf 9bis) Or untar AutoGeneratedFile.tar.gz # cd ff++ # tar zxvf AutoGeneratedFile.tar.gz 10) compilation of freefem++ # cd ff++ # ./configure -—enable-download # make # sudo make install Under Mavericks (10.9) 2012 ( xcode 5.0.2 form scratch) ------------------------------------------------- remark: All line beginning by # are shell command in terminal. 1) install xcode 5.0.2 , and the xcode command line tools xcode install Auxiliary Tools for Xcode (for PackageMaker) 2) to install command line tools do xcode click Xcode>Open Developer Tool>More Developer Tools. 2) install gcc-4.9 form http://hpc.sourceforge.net # curl -O http://prdownloads.sourceforge.net/hpc/gfortran-4.9-bin.tar.gz?download # sudo tar zxvf gfortran-4.9-bin.tar.gz -C / 3) autoconf and automake now not in xcode I use the macport distribution form http://www.macports.org # sudo port install autoconfo # sudo port install automake Or with brew tool ... 4) install tex from ctan http://mirrors.ctan.org/systems/mac/mactex/MacTeX.pkg 5) install openmpi form the source http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.bz2 # ./configure CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ F77=/usr/local/bin/gfortran FC=/usr/local/bin/gfortran # make # sudo make install 6) install gsl # curl -O http://ftp.gnu.org/gnu/gsl/gsl-1.15.tar.gz # tar zxvf gsl-1.15.tar.gz # cd gsl-1.15. #./configure CC=/usr/local/bin/gcc # make # sudo make install 7) install git from the web https://git-scm.com/downloads 8) downlaod # git clone https://github.com/FreeFem/FreeFem-sources ff++ 9) compilation of freefem++ # cd ff++ # ./configure '-with-suffix=macos-10.8' '-without-fltk' '--enable-download' '--enable-optim' 'MPIRUN=/usr/local/bin/mpirun' '--enable-m64' '--without-x' 'CC=clang -isysroot /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk' 'CFLAGS=-mmacosx-version-min=10.8' 'CXXFLAGS=-mmacosx-version-min=10.8 -std=c++11' 'CXX=clang++ -isysroot /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk' 'F77=/usr/local/bin/gfortran' 'FC=/usr/local/bin/gfortran' 'MPICXX=/usr/local/bin/mpic++' 'MPICC=/usr/local/bin/mpicc' 'MPIFC=/usr/local/bin/mpif90' 'MPIF77=/usr/local/bin/mpif90' '--enable-maintainer-mode' # make # make # make # sudo make install Under Lion August 2012 ( xcode 4.4 form scratch) ------------------------------------------------- remark: All line beginning by # are shell command in terminal. 1) install xcode 4.5.1 , and the xcode command line tools xcode menu preferences -> Downloads -> Components -> Command Line Tools install install Auxiliary Tools for Xcode (for PackageMaker) 2) install gcc-4.8 form http://hpc.sourceforge.net # curl -O http://prdownloads.sourceforge.net/hpc/gcc-lion.tar.gz?download # sudo tar zxvf gcc-lion.tar.gz -C / 3) autoconf and automake now not in xcode I use the macport distribution form http://www.macports.org # sudo port install autoconfo # sudo port install automake 4) install tex from ctan http://mirrors.ctan.org/systems/mac/mactex/MacTeX.pkg 5) install openmpi form the source http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.tar.bz2 # ./configure CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++ F77=/usr/local/bin/gfortran FC=/usr/local/bin/gfortran # make # sudo make install 6) install gsl # curl -O http://ftp.gnu.org/gnu/gsl/gsl-1.15.tar.gz # tar zxvf gsl-1.15.tar.gz # cd gsl-1.15. #./configure CC=/usr/local/bin/gcc # make # sudo make install 7) install git from the web git SCM 8) download # git clone https://github.com/FreeFem/FreeFem-sources ff++ 9) compilation of freefem++ # cd ff++ # ./configure '-with-suffix=lion' '-without-fltk' '--enable-download' '--enable-optim' 'MPIRUN=/usr/local/bin/mpirun' '--enable-m64' '--without-x' 'CC=/usr/local/bin/gcc' 'CXX=/usr/local/bin/g++' 'F77=/usr/local/bin/gfortran' 'FC=/usr/local/bin/gfortran' # make # make # make # sudo make install ------------
Remark on version 10.10, 10.9 and 10.8 to authorise the install from everywhere (see System Preferences > Security & Privacy > General > Allow applications dow
nloaded from > Anywhere)