Page 1 of 1

.mod files compilation issues

Posted: Thu Jun 04, 2020 8:37 am
by mmushtaq
Hello

I faced a problem in NEURON project compilation on LINUX Ubuntu. I installed NEURON on home directory. When I compile project’s mod files, the system generates x86_64 folder in home directory instead of project folder. When I compile mod files of other project, new .c and .lo files are generated in same x86_64 folder and new files override some previous files. So I can not compile two project at same time. Would you give me some suggestion to solve this problem? I will wait for your reply.

Re: .mod files compilation issues

Posted: Fri Jun 05, 2020 5:45 pm
by ted
I installed NEURON on home directory.
0. Where did you get whatever you used to install NEURON?

1. Did you install from source code, or did you use a binary installer?

2. What is the complete path to where you installed NEURON? Example: a user named sam will have a home directory with path /home/sam. If sam installs NEURON into his home directory, this will create a directory called nrn and the path of this directory will be /home/sam/nrn.

3. At the system prompt, execute
echo $PATH
What is printed to the terminal?

4. At the system prompt, execute
nrngui
What does NEURON print to the terminal?

Re: .mod files compilation issues

Posted: Sat Jun 06, 2020 7:10 am
by mmushtaq
Thank you very much for your kind reply.
Here are the answers of your points

0. Where did you get whatever you used to install NEURON?
A. Source code from: https://www.neuron.yale.edu/neuron/download
Prerequisites (packages) via Ubuntu: apt install ...

1. Did you install from source code, or did you use a binary installer?
A. From source code.

2. What is the complete path to where you installed NEURON? Example: a user named sam will have a home directory with path /home/sam. If sam installs NEURON into his home directory, this will create a directory called nrn and the path of this directory will be /home/sam/nrn.
A. /nfshome/mushtaq/NRN/nrn-7.7

3. At the system prompt, execute
echo $PATH
What is printed to the terminal?
A. mushtaq@pc18:~$ echo $PATH
/nfshome/mushtaq/bin:/nfshome/mushtaq/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/local-ubuntu/bin:/usr/local/bin:/nfshome/mushtaq/NRN/nrn-7.7/x86_64/bin

4. At the system prompt, execute
nrngui
What does NEURON print to the terminal?
A: When I execute the nrngui command for example running init.hoc file from my_project
mushtaq@pc18:~$ nrngui my_project/init.hoc
NEURON main menu bar opens but it cannot find exact path SWS/init.hoc and show error of missing Ca, Na (mod files) etc. When I select file (my_project /init.hoc) from this main menu bar, it works.

Re: .mod files compilation issues

Posted: Sun Jun 07, 2020 5:46 pm
by ramcdougal
Why did you compile NEURON from source?

Do you get this problem if you use the version from

Code: Select all

pip install neuron
How are you compiling the mod files? The x86_64 should appear in whatever folder you run nrnivmodl from.

Re: .mod files compilation issues

Posted: Mon Jun 08, 2020 4:25 am
by mmushtaq
Sorry I was comiling .mod files with wrong path. Problem solved. Thank you very much!