Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test...

38
Install NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools" Or use the one that comes with your mac. but anything >= OSX 10.7 is fine.

Transcript of Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test...

Page 1: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Install NEURON on MacThe example here is for El Capitan (10.11)

Install NEURON.Install XQuartz if neurondemo does not work.Install "XCode command line tools".Install Python 2.7 distribution.

Test NEURON + Python.Test MPI parallel from terminal.

git comes with "command line tools"

Or use the one that comes with your mac.

but anything >= OSX 10.7 is fine.

Page 2: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Install NEURON on Mac 64bit dmg

Page 3: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Open the downloaded dmg

Page 4: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

and drag NEURON−7.4 folder into /Applications

Page 5: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

The first time you run NEURON ...

Page 6: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

the OS thinks the provenance is questionable.

Page 7: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Open "System Preferences". Select "Security and Privacy"

Page 8: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

turn off the blocking

Page 9: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Now it will run

Page 10: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

you’ll have to Ok a few other programs as well.

Page 11: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

But success only if you have XQuartz installed.

Page 12: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Ignore if neurondemo was successful

Page 13: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Otherwise download XQuartz

Page 14: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Open the dmg

Page 15: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

and launch the XQuartz installer.

Page 16: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

it can take a few minutes

Page 17: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Press OK, but something to remember ...

Page 18: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

XQuartz is installed

Page 19: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

but now log out and log back in.

Page 20: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Now neurondemo should be successful. exit via NEURONMainMenu/File/Quit

Page 21: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Command Line Tools depend on OSX version

Page 22: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

El Capitan is 10.11

Page 23: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Free, but need to sign in to Apple

Page 24: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Anyone can be a Developer

Page 25: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Double click on the correct one ... and the download URL will be displayed.

Page 26: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Open and install in the usual way.

Page 27: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Python and easy_install come with the mac but...

Page 28: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

this is an easy way to get OpenMPI and Mayavi

Page 29: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

So what do we have?

Page 30: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Scipy, matplotlib, but not mayavi... conda install mayavi

Page 31: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

and now mayavi can be imported.

Page 32: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Test a few things by opening a Terminal window. /Applications/Utilities/Terminal

Page 33: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

With PYTHONPATH, Python can import neuron /Applications/NEURON−7.4/nrn/lib/python

Page 34: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

nrnpyenv.sh helps with environment variables

Page 35: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

copy/paste allows nrniv to find anaconda packages.

Page 36: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

"conda install mpi4py" also installs openmpi

Page 37: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

Add the exports to your $HOME/.bash_profile

Page 38: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"

MPI works.