This repository has been archived by the owner on Jul 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME_MAC
157 lines (127 loc) · 6.89 KB
/
README_MAC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
The version 3.41 is compile Under Yosemite (10.10.5) 7/10/2015
xcode 7.0.1 + previous install of latex and with other brew install
Oct. 7th 2015 F. Hecht Paris.
-------------------------------------------------------
precompile compile version version 3.41
add installer intel ifort compiler (ifort version 15.0.2 with mkl)
build mpich, libgsl, hdf5
the configure of all sofware are:
mpich-3.1.4: ./configure 'FC=ifort' 'F77=ifort' '-prefix=/usr/local/ff++/mpich'
gsl-1.16 ./configure 'CC=clang' '--prefix=/usr/local/ff++/mpich/'
hdf5-1.8.14 ./configure '--enable-cxx' 'CC=clang' 'CXX=clang++' '--prefix=/usr/local/ff++/mpich'
petsc; ./configure '--CFLAGS=-O2' '--COPTFLAGS=-O3' '--CXXFLAGS=-O2 -std=c++11' \
'--CXXOPTFLAGS=-O3' '--FFLAGS=-O2' '--FOPTFLAGS=-O3' '--download-fftw' \
'--download-hypre' '--download-metis' '--download-ml' '--download-mumps' \
'--download-parmetis' '--download-pastix' '--download-ptscotch' '--download-scalapack' \
'--download-suitesparse' '--download-superlu' '--prefix=/usr/local/ff++/mpich/petsc' \
'--with-blas-lapack-lib=-L/opt/intel/mkl/lib -lmkl_intel_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_sequential -lm -lpthread ' '--with-mpi-dir=/usr/local/ff++/mpich' 'PETSC_ARCH=arch-ff++'
freefem++: ./configure '--prefix=/usr/local/ff++/mpich/3.41' '--enable-download' '--enable-optim' '--enable-m64' \
'F77=ifort' 'FC=ifort' '--enable-maintainer-mode' '--with-mkl=/opt/intel/mkl/lib' \
'--with-petsc=/usr/local/ff++/mpich/petsc/lib/petsc/conf/petscvariables' '-with-hdf5=/usr/local/ff++/mpich/bin/h5cc' \
'--with-gsl-prefix=/usr/local/ff++/mpich/' '--disable-pastix'
Please read INNOVATION file to see all modifaction and news
Plus all previous install
0-1) with brew install
499 brew install wget
500 brew install autoconf
501 brew install automake
504 brew install cmake
505 brew install gfortran
506 brew install gcc
540 brew install m4
585 brew install pkg-config
588 brew install gobject-introspection
0-2) latex is install form https://tug.org/mactex/mactex-download.html
To compile a full version of FreeFem++ under MacOS
---------------------------------------------------
Under Yosemite (10.10.2) 2015 ( xcode 6.2 form scratch)
1) install xcode
do clang to install command line
2) with brew install
499 brew install wget
500 brew install autoconf
501 brew install automake
504 brew install cmake
505 brew install gfortran
506 brew install gcc
540 brew install m4
585 brew install pkg-config
588 brew install gobject-introspection
3)
install brew
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) install xcode command line (xcode 5.0.2 bug ???? )
# xcode-select --install
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=clang' 'CXX=clang++' 'FC=gfortran' 'F77=gfortran' --enable-ltdl-convenience
# 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=clang
# make
# sudo make install
7) install mecurial from the web http://mercurial.selenic.com
8) download
# hg clone http://www.freefem.org/ff++/ff++
9) compilation of freefem++
# cd ff++
# ./configure '-with-suffix=macos-10.9' '-without-fltk' '--enable-download' '--enable-optim' 'MPIRUN=/usr/local/bin/mpirun' '--enable-m64' '--without-x' 'CC=clang' 'CXXFLAGS=-std=c++11' 'CXX=clang++' '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
to bluid the version of 10.8 the version compilation (fev. 2014)
./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' 'CXXFLAGS=-mmacosx-version-min=10.8' 'CXX=clang++ -std=c++11 -isysroot /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk' 'CFLAGS=-mmacosx-version-min=10.8' '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'
------------
Under Snow Leopard. Jan 2011
The major problem is take a good f90 to compile new // solver like MUMPS.
Do the follow instalation process:
0) Install the developper tools form the apple DVD's.
1) get macport for http://www.macports.org/ and installation:
sudo port selfupdate
sudo port install g95
sudo port install wget
2) get and install mercurial form
http://mercurial.selenic.com/
3) to compile openmpi with fortran interface and install
do :
wget http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.3.tar.bz2
remark, I have test with version 1.4.1 , but I thing no problem acure with this new version
tar zxvf openmpi-1.4.3.tar.bz2
cd openmpi-1.4.3
./configure FC=/opt/local/bin/g95 F77=/opt/local/bin/g95
sudo make install
4) get Tex/laTex for the documention build
form http://www.tug.org/mactex/
and install
5) to get download the last freefem++ version , do
hg clone http://www.freefem.org/ff++/ff++
cd ff++
./configure '-with-suffix=snow-leopard' '--enable-download' 'F77=/opt/local/bin/g95' '-with-mpi=/usr/local/bin/mpic++' '--enable-m64' 'FLIBS=/opt/local/lib/g95/x86_64-apple-darwin10/4.2.4/libf95.a' 'MPIF77=/usr/local/bin/mpif77' 'MPICC=/usr/local/bin/mpicc' 'MPIFC=/usr/local/bin/mpif90' 'MPI_INC_DIR=/usr/local/include' 'MPICXX=/usr/local/bin/mpic++'
make
make install
Good Luck, and if I miss something sorry,
try to add missing tools with
sudo port install missing-tool
like for exemple:
sudo port install gnuplot
sudo install_name_tool -change /Users/hecht/ff/ff-MacOS-10.9/download/PETSc/petsc-3.5.2/arch-darwin-c-debug/lib/libparmetis.dylib /usr/local/petsc/lib/libparmetis.dylib libpetsc.3.5.dylib