Skip to content

Commit 7c815d0

Browse files
committed
macos update
1 parent b40a624 commit 7c815d0

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

source/introduction/installation.rst

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Compilation on OSX (>=10.13)
177177
.. code-block:: bash
178178
:linenos:
179179
180-
brew cask install gfortran
180+
brew --cask install gfortran
181181
182182
.. note:: If you have installed gcc via brew, gfortran comes with it and you do not need this line
183183

@@ -191,25 +191,25 @@ Compilation on OSX (>=10.13)
191191
tar xf openmpi-4.0.1
192192
cd openmpi-4.0.1/
193193
# to install mpich
194-
curl -L http://www.mpich.org/static/downloads/3.3.2/mpich-3.3.2.tar.gz --output mpich-3.3.2.tar.gz
195-
tar xf mpich-3.3.2
196-
cd mpich-3.3.2
194+
curl -L https://www.mpich.org/static/downloads/4.0.2/mpich-4.0.2.tar.gz --output mpich-4.0.2.tar.gz
195+
tar xf mpich-4.0.2.tar.gz
196+
cd mpich-4.0.2
197197
198198
.. code-block:: bash
199199
:lineno-start: 4
200200
201201
# with brew gcc gfortran compilers
202-
./configure CC=clang CXX=clang++ FC=gfortran-9 F77=gfortran-9 --prefix=/where/you/want/to/have/files/installed
202+
FFLAGS=-fallow-argument-mismatch FCFLAGS=-fallow-argument-mismatch ./configure CC=clang CXX=clang++ FC=gfortran-11 F77=gfortran-11 --prefix=/where/you/want/to/have/files/installed
203203
204204
# with LLVM gcc and brew gfortran compilers
205-
./configure CC=gcc-9 CXX=g++-9 FC=gfortran-9 F77=gfortran-9 --prefix=/where/you/want/to/have/files/installed
205+
FFLAGS=-fallow-argument-mismatch FCFLAGS=-fallow-argument-mismatch ./configure CC=gcc-11 CXX=g++-11 FC=gfortran-11 F77=gfortran-11 --prefix=/where/you/want/to/have/files/installed
206206
207207
208208
.. code-block:: bash
209209
:lineno-start: 5
210210
211211
make -j<nbProcs>
212-
make -j<nbProcs> install
212+
make install
213213
214214
4. Install the minimal libraries for **FreeFEM**
215215

@@ -237,12 +237,12 @@ Compilation on OSX (>=10.13)
237237
.. code-block:: bash
238238
:linenos:
239239
240-
curl -O http://mirror.cyberbits.eu/gnu/gsl/gsl-2.5.tar.gz
241-
tar zxvf gsl-2.5.tar.gz
242-
cd gsl-2.5
240+
curl -O https://mirror.ibcp.fr/pub/gnu/gsl/gsl-2.7.tar.gz
241+
tar zxvf gsl-2.7.tar.gz
242+
cd gsl-2.7
243243
./configure
244244
make -j<nbProcs>
245-
make -j<nbProcs> install --prefix=/where/you/want/to/have/files/installed
245+
make install --prefix=/where/you/want/to/have/files/installed
246246
247247
8. Download the latest Git for Mac installer `git <https://git-scm.com/download/mac>`__ and the **FreeFEM** source from the repository
248248

@@ -266,14 +266,12 @@ Compilation on OSX (>=10.13)
266266
:lineno-start: 3
267267
268268
// with brew gcc gfortran compilers
269-
./configure --enable-download CC=clang CXX=clang++ F77=gfortran-9
270-
FC=gfortran-9 --prefix=/where/you/want/to/have/files/installed
269+
./configure --enable-download -enable-optim CC=clang CXX=clang++ F77=gfortran-11
270+
FC=gfortran-11 --prefix=/where/you/want/to/have/files/installed
271271

272272
// with LLVM gcc and brew gfortran compilers
273-
./configure --enable-download CC=clang CXX=clang++ F77=gfortran-9
274-
FC=gfortran-9 --prefix=/where/you/want/to/have/files/installed
275-
276-
273+
./configure --enable-download -enable-optim CC=gcc CXX=g++ F77=gfortran-11
274+
FC=gfortran-11 --prefix=/where/you/want/to/have/files/installed
277275

278276
10. Download the 3rd party packages to use FreeFEM plugins
279277

0 commit comments

Comments
 (0)