Windows 7.2 NEURON on Linux?

Post Reply
ShainaShort
Posts: 2
Joined: Wed May 31, 2023 2:18 pm

Windows 7.2 NEURON on Linux?

Post by ShainaShort »

I have tried several things to run an old simulation written with NEURON 7.2 Windows on Linux (running version 8.2.3), but I have yet to get it to work. Do you have any suggestions on how best to transfer this? Currently, the code runs fine using the older NEURON 7.2 on Windows. Is there a different version of the Linux NEURON software that is compatible with Windows NEURON 7.2? Or perhaps I need to modify something in the .hoc or .mod files? Thanks for any guidance here.
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Windows 7.2 NEURON on Linux?

Post by ted »

Hi, Shaina. Sorry about the delay, but I've been traveling a bit after the course we did at ASU week before last.

Open a terminal and cd into the the folder that holds your code. If there is a file called nrnmech.dll, delete it. Or if you see a folder called x86_64, delete that and all its contents.

After you've done that, see if there are any files whose names end with .mod. If there are some, at the system prompt run this command
nrnivmodl

This should compile your mod files and things should just work.

Sometimes people put their mod files in a folder called something like mod, nmodl., or mechanisms. If that's what you see, then when you're in the folder that contains your hoc or py files you'll need to run
nrnivmodl name_of_folder_that_has_the_mod_files
ShainaShort
Posts: 2
Joined: Wed May 31, 2023 2:18 pm

Re: Windows 7.2 NEURON on Linux?

Post by ShainaShort »

Thank you so much! Everything is running now. I only need to delete the nrnmech.dll file. Much appreciated!
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Windows 7.2 NEURON on Linux?

Post by ted »

You're quite welcome, Shaina. Glad to help!
Post Reply