Page 1 of 1

Errors with nrnivmodl on a local install of neuron

Posted: Tue Apr 11, 2023 12:50 pm
by countfizix
I recently installed neuron 7.7 on a cluster with a local install and get this error when attempting to compile mod files with default parameters such as PI and FARADAY.

error: _nrnunit_use_legacy_ undeclared (first use in this function)
#define PI _nrnunit_PI[_nrnunit_use_legacy_]

I do not get this error on other machines with the same version of neuron

Is this related to a choice in configuration or is there a global environment variable (NEURON_HOME?) that needs to be set for nrnivmodl to find key libraries?

For reference, my configuration was

./configure --prefix=$HOME/neuron --with-nrnpython=$HOME/.localpython/bin/python2.7 --without-x --with-mpi --with-paranrn --enable-pysetup=install

Re: Errors with nrnivmodl on a local install of neuron

Posted: Tue Apr 11, 2023 1:08 pm
by countfizix
I was able to resolve it by setting NEURONHOME=$HOME/neuron/share, deleting the x86_64 folder, then recompiling