Top Banner
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.
38

Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Apr 16, 2018

Download

Documents

hoangdat
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

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 - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Install NEURON on Mac 64bit dmg

Page 3: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Open the downloaded dmg

Page 4: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

and drag NEURON−7.4 folder into /Applications

Page 5: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

The first time you run NEURON ...

Page 6: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

the OS thinks the provenance is questionable.

Page 7: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

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

Page 8: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

turn off the blocking

Page 9: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Now it will run

Page 10: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

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

Page 11: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

But success only if you have XQuartz installed.

Page 12: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Ignore if neurondemo was successful

Page 13: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Otherwise download XQuartz

Page 14: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Open the dmg

Page 15: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

and launch the XQuartz installer.

Page 16: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

it can take a few minutes

Page 17: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Press OK, but something to remember ...

Page 18: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

XQuartz is installed

Page 19: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

but now log out and log back in.

Page 20: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

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

Page 21: Install NEURON on Mac - NEURON | for empirically … 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 depend on OSX version

Page 22: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

El Capitan is 10.11

Page 23: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Free, but need to sign in to Apple

Page 24: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Anyone can be a Developer

Page 25: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

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

Page 26: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Open and install in the usual way.

Page 27: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Python and easy_install come with the mac but...

Page 28: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

this is an easy way to get OpenMPI and Mayavi

Page 29: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

So what do we have?

Page 30: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

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

Page 31: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

and now mayavi can be imported.

Page 32: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

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

Page 33: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

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

Page 34: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

nrnpyenv.sh helps with environment variables

Page 35: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

copy/paste allows nrniv to find anaconda packages.

Page 36: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

"conda install mpi4py" also installs openmpi

Page 37: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

Add the exports to your $HOME/.bash_profile

Page 38: Install NEURON on Mac - NEURON | for empirically … NEURON on Mac The example here is for El Capitan (10.11) Install NEURON. Install XQuartz if neurondemo does not work. Install "XCode

MPI works.