Using mkthreadsafe under MSWin

A collection of noteworthy items selected by our moderators from discussions about making and using models with NEURON.

Moderators: ted, wwlytton, tom_morse

Post Reply
ted
Site Admin
Posts: 6286
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Using mkthreadsafe under MSWin

Post by ted »

If you're using a mingw-based installation of NEURON (version 7.5 or later), skip to the next post in this thread. If you're using a Cygwin-based installation of NEURON, here's how to use mkthreadsafe.

1. Start an rxvt window by clicking on the rxvt.sh item in the NEURON Program Group

2. Use cd to navigate to the directory that contains your mod files.
Note that in the rxvt window:
--the root of drive C: is called /cygdrive/c
--the command
pwd
tells you where you are
and
ls
tells you what files exist in your current working directory.

For more information about the rxvt window, see
rxvt sh under MSWin
http://www.neuron.yale.edu/phpBB/viewto ... =28&t=1391

3. When you get to the directory where your mod files are located, you can use the command

Code: Select all

bash /cygdrive/c/nrnxx/bin/mkthreadsafe
to check ALL the mod files, or

Code: Select all

bash /cygdrive/c/nrnxx/bin/mkthreadsafe filename.mod
to just check filename.mod
ted
Site Admin
Posts: 6286
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Using mkthreadsafe under MSWin

Post by ted »

These instructions for using mkthreadsafe assume a mingw-based installation of NEURON (version 7.5 or later).

1. Start a bash window by clicking on the bash item in the NEURON Program Group

2. Use cd to navigate to the directory that contains your mod files.
Note that in the bash window:
--the root of drive C: is called /c
--the command
pwd
tells you where you are
and
ls
tells you what files exist in your current working directory.

The bash window actually has a lot of nice features, just like those of the rxvt window--read about them here
rxvt sh under MSWin
http://www.neuron.yale.edu/phpBB/viewto ... =28&t=1391

3. When you get to the directory where your mod files are located, you can use the command

Code: Select all

mkthreadsafe
to check ALL the mod files, or

Code: Select all

mkthreadsafe filename.mod
to just check filename.mod.
Post Reply