Page 1 of 1

Using mkthreadsafe under MSWin

Posted: Thu Jan 21, 2010 11:42 am
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

Re: Using mkthreadsafe under MSWin

Posted: Tue Sep 05, 2017 11:15 am
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.