Skip to content

Commit 3fbcc65

Browse files
author
Weiwei Wang
committed
minor update for doc related to the install on mac
1 parent a0998aa commit 3fbcc65

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

bin/install-fftw.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ download_and_install() {
3030
tar -xzf ${1}.tar.gz
3131
cd ${1}
3232
echo "Configuring "${1}"."
33-
./configure --quiet --enable-shared --prefix=${LIBS_DIR} $3
33+
./configure --quiet --enable-shared --enable-openmp --prefix=${LIBS_DIR}
3434
echo "Compiling and installing "${1}"."
3535
{
3636
make
@@ -41,6 +41,6 @@ download_and_install() {
4141
fi;
4242
}
4343

44-
download_and_install ${FFTW} http://www.fftw.org "--enable-openmp --enable-avx"
44+
download_and_install ${FFTW} http://www.fftw.org
4545

4646
echo "Installation succesful."

doc/install.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,18 @@ Notes:
217217
failed without a working X server).
218218

219219
Install on OS X
220-
===============
220+
=================
221221

222222
The inbuilt OS X gcc compiler (actually clang) doesn't have OpenMP support. A workaround is to
223223

224224
- install gcc5 (via homebrew, for example: ``brew install gcc --without-multilib``)
225225
- set CC environment variable to point to that compiler: ``export CC=gcc-5``
226226

227+
Alternatively, gcc can be installed through ``sudo port install gcc5`` and CC environment
228+
variable can be set via ``export CC=gcc-mp-5``
227229

228-
Once this is done, run ``bin/install.sh`` which will compile fftw3 and
229-
sundials (in a local subdirectory) using this compiler.
230+
Once this is done, run ``bin/install-fftw.sh`` and ``bin/install-sundials.sh`` which will
231+
compile fftw3 and sundials (in a local subdirectory) using this compiler.
230232

231233
Also install pytest (``conda install pytest`` if using conda) and
232234
``pyvtk`` via pip (``pip install pyvtk``).

0 commit comments

Comments
 (0)