Dunkatron Mac OS

  1. Dunkatron Mac Os X
  2. Dunkatron Mac Os Catalina
  3. Mac Os Versions
  4. Dunkatron Mac Os X

Mac icon osx apple windows sierra os yosemite icons elcapitan. MacOS cursors for Windows. MacOS Sierra Retina cursors. MacOS BigSur For RocketDock. MacOS Sierra for all Windows OS. Brief history of mac os. View Duncan MacKinnon’s profile on LinkedIn, the world’s largest professional community. Duncan has 9 jobs listed on their profile. See the complete profile on LinkedIn and discover Duncan’s connections and jobs at similar companies.

Here is an excellent set of instructions for users of El Capitan, and it may contain hints that are useful if you're running an earlier version of OS X: https://www.neuron.yale.edu/ftp/neuron/nrn_mac_install.pdf

The following instructions assume that you are compiling for OSX 10.9 (Mavericks) or later, including macOS, and want to be able to:

  • use NEURON from the command line or through the macOS GUI
  • use Python as an alternative interpreter
  • run parallelized simulations under MPI in order to speed up embarrassingly parallel problems, or exeucte simulations of networks or individual cells that are distributed over multiple processors

Some of these instructions are based on recommendations from other Mac users who have compiled NEURON under macOS. Please let us know if you have additional suggestions.

In the following steps, you're going to use the Terminal application a lot. If it isn't in your Dock already, open /Applications/Utilities, then find Terminal and drag it to the Dock.

Dunkatron Mac Os X

I. Installing prerequisites.
II. Installing InterViews and NEURON.
III. Post-installation testing.
IV. Modifying NEURON's appearance.

I. Installing prerequisites

To install NEURON from source code, you will need the following:

GCC

The most convenient way to put GCC on your Mac is to execute the following in a terminal window:

When prompted, click 'install' and then 'agree' to the license.

Git

Download and install Git from https://git-scm.com/downloads.

autoconf, automake, and libtool

1. Download the most recent source code for autoconf, automake, and libtool from http://ftp.gnu.org/gnu/.

2. Execute these commands in a terminal window

3. From that same terminal, expand autoconf, then cd to the root of autoconf's source code tree and install it.

4. Repeat step 3 for automake, then for libtool.

5. Now see if ~/.profile already exists. If it does, add these lines to it:

If ~/.profile does not already exist, create one and put those lines in it.

XQuartz

XQuartz provides an X11 window server.

Download and install the most recent XQuartz dmg from http://xquartz.org. The installer will prompt you to log off, then back on, to make XQuartz your default X11 server. Make sure the 'reopen windows when you log back in' box is checked, so your terminal and these instructions will reappear when you log back in.

In the terminal, execute this command:

That will enable single click action so you can click on a button in a window without first having to click on the window to make it active.

To verify that this worked, execute this command

and look for this output:

Open MPI

If you plan to run parallel simulations under MPI on your Mac, you'll need to download and install the tar.gz file for the latest stable release of Open MPI from http://www.open-mpi.org/. Expand the tar.gz file, then install openmpi.

II. Installing InterViews and NEURON.

After you get to this point, the rest is pretty easy.

A. Set up folders for the NEURON application so that the graphical icons will work and Python will work when desired.

B. Get the source code for InterViews and NEURON

C. Install InterViews

D. Install NEURON

E. Create a nrnenv in $HOME/neuron/ with these contents:

and add the following lines to your ~/.profile

Your complete ~/.profile should now look like this:

F. Build the icons for GUI use.

Comments--
make after_install does the following things:

  • creates the icons
  • strips the executables, making them smaller but more difficult to use with gdb
  • creates neurondemo

The executables to be stripped can be found by examining nrn/src/mac/after-install.sh for the lines that contain strip. You can prevent stripping by defining a strip script that is null before executing make. Once stripped, however, NEURON has to be rebuilt in order to generate a version that is not stripped.

G. If you are developer and want to prepare a packaged version of NEURON, build a dmg.

This command outputs a message to the terminal that tells where the dmg was created. The default location is $HOME.

III. Post-installation testing.

Before proceeding, make sure your ~/.profile contains the lines described above (see 'Your complete ~/.profile should now look like this:').

Log out, then log back in, so your ~/.profile takes effect.

A. Try running these commands from the command line:

You might also want to try double clicking the program icons in the /Applications/NEURON-7.5 folder.

B. Try running demonstrations from the parallel examples folder on the command line.

Mac

Example output:

C. Verify that NEURON can be used via the macOS GUI.

Installing NEURON places the mknrndll and nrngui icons in the Applications/NEURON-7.5 folder. For the sake of convenience, you may want make these icons more accessible by dragging and dropping them onto the dock bar.

The standard way to use NEURON with the macOS GUI interface is:

  1. Compile any mod files by dragging and dropping the folder that contains them onto the mknrndll icon. mod files are usually the top level folder of an archive, but sometimes they're in a subfolder.
  2. Launch NEURON by dragging and dropping an initialization script onto the nrngui icon. The initialization script is typically called init.hoc or mosinit.hoc.

To test this, we downloaded a random model NEURON model from ModelDB (http://senselab.med.yale.edu/modeldb/ShowModel.asp?model=137259) and did the following:

Dunkatron Mac Os Catalina

  • extract the zip file
  • drag and drop the ca3-synresp folder onto the mknrndll icon
  • drag and drop the mosinit.hoc file onto the nrngui icon

Mac Os Versions

The model ran successfully.

IV. Modifying NEURON's appearance.

You can change the GUI's appearance by editing /Applications/NEURON-7.5/nrn/share/nrn/lib/nrn.defaults

It would be a good idea to make a copy first, so you can go back to the original if you like.

For example, you might want to change the default font by changing

to

Dunkatron Mac Os X

Then run neurondemo to see the difference.