Comments:
1. The details of compiling NEURON under UNIX differ slightly, depending on whether you are starting with the standard distribution's gzipped tar files, or development code from the Subversion repository. These instructions assume that you are working with the former.
2. In the following instructions,mm
andnn
stand for the version numbers of InterViews and NEURON, respectively.
Installing from source code gives you much more control over what you get and where it ends up. Here are your basic choices:
neuron
directory in your home directory,
put the gzipped source files in it, and jump in after them.cd $HOME mkdir neuron mv iv-mm.tar.gz neuron mv nrn-nn.tar.gz neuron cd neuron
tar xzf iv-mm.tar.gz # renaming the new directory to iv makes life simpler later on mv iv-mm iv cd iv ./configure --prefix=`pwd` # What if configure fails make make install
cd $HOME/neuron tar xzf nrn-nn.tar.gz # renaming the new directory to nrn makes life simpler later on mv nrn-n.n nrn cd nrn ./configure --prefix=`pwd` make make install
./config.guess #your hostcpu is printed in the form hostcpu-vendor-osversion # for this concrete example, we assume it is i686 i686/bin/neurondemoIf this doesn't work, you may need the LD_LIBRARY_PATH environment variable.
.bashrc
filesource $HOME/neuron/nrnenvand create an
nrnenv
file in $HOME/neuron
with the contents
export IV=$HOME/neuron/iv export N=$HOME/neuron/nrn # for this concrete example, we assume hostcpu is i686 export CPU=i686 export PATH="$IV/$CPU/bin:$N/$CPU/bin:$PATH"If you plan to use the ParallelContext with PVM, you may need a few more environment variables.
neuron
directory in your home directory, put the gzipped source for NEURON in it, and jump in after it.cd $HOME mkdir neuron mv nrn-nn.tar.gz neuron cd neuron
tar xzf nrn-nn.tar.gz # renaming the new directory to nrn makes life simpler later on mv nrn-n.n nrn cd nrn ./configure --prefix=`pwd` --without-iv make make install
./config.guess #your hostcpu is printed in the form hostcpu-vendor-osversion cd share/nrn/demo/release # for this concrete example, we assume hostcpu is i686 $HOME/neuron/nrn/i686/bin/nrnivmodl i686/specialIf this doesn't work, you may need the LD_LIBRARY_PATH environment variable.
.bashrc
filesource $HOME/neuron/nrnenvand create an
nrnenv
file in $HOME/neuron
with the contents
export N=$HOME/neuron/nrn # for this concrete example, we assume hostcpu is i686 export CPU=i686 export PATH="$N/$CPU/bin:$PATH"If you plan to use the ParallelContext with PVM, you may need a few more environment variables.
neuron
directory in your home directory, put the gzipped source for NEURON in it, and jump in after it.cd $HOME mkdir neuron mv nrn-nn.tar.gz neuron cd neuron
tar xzf nrn-nn.tar.gz # renaming the new directory to nrn makes life simpler later on mv nrn-n.n nrn cd nrn ./configure --prefix=`pwd` --without-nrniv make make install
./config.guess #your hostcpu is printed in the form hostcpu-vendor-osversion cd share/nrn/demo/release # for this concrete example, we assume hostcpu is i686 $HOME/neuron/nrn/i686/bin/nrnocmodl i686/specialIf this doesn't work, you may need the LD_LIBRARY_PATH environment variable.
.bashrc
filesource $HOME/neuron/nrnenvand create an
nrnenv
file in $HOME/neuron
with the contents
export N=$HOME/neuron/nrn # for this concrete example, we assume hostcpu is i686 export CPU=i686 export PATH="$N/$CPU/bin:$PATH"If you plan to use the ParallelContext with PVM, you may need a few more environment variables.
--prefix
option in the configure
statement
controls where the installation will be placed.
If you don't specify a prefix, a default installation directory is used.
For InterViews this is /usr/local/iv
,
and for NEURON it is /usr/local/nrn
--with-iv
option when you execute
./configure . . .
in the nrn-n.n
directory.
If you don't specify a --with-iv
, it looks first in
prefix/.../iv
and then in /usr/local/iv
.
In general there should no longer be any requirement for CPU, NEURONHOME, or LD_LIBRARY_PATH environment variables. However, if you have trouble launching NEURON it may be because I am not using libtool generically in the configuration files and need an explicit LD_LIBRARY_PATH for InterViews or for the compiler libraries. Try adding a
setenv LD_LIBRARY_PATH "${HOME}/neuron/nrn/hostcpu/lib"statement to your
nrnenv
file.
Using ParallelContext?
Install PVM and add
export PVM_ROOT=$HOME/pvm3 source ${PVM_ROOT}/lib/bashrc.stub export PVM_RSH=/usr/bin/sshto
nrnenv
.