.mod files compilation issues

Post Reply
mmushtaq
Posts: 16
Joined: Mon Jun 23, 2014 7:23 am

.mod files compilation issues

Post 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.
ted
Site Admin
Posts: 6286
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: .mod files compilation issues

Post 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?
mmushtaq
Posts: 16
Joined: Mon Jun 23, 2014 7:23 am

Re: .mod files compilation issues

Post 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.
ramcdougal
Posts: 267
Joined: Fri Nov 28, 2008 3:38 pm
Location: Yale School of Public Health

Re: .mod files compilation issues

Post 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.
mmushtaq
Posts: 16
Joined: Mon Jun 23, 2014 7:23 am

Re: .mod files compilation issues

Post by mmushtaq »

Sorry I was comiling .mod files with wrong path. Problem solved. Thank you very much!
Post Reply