Running NEURON from terminal in OS X 10.5

Post Reply
ben24

Running NEURON from terminal in OS X 10.5

Post by ben24 »

Hello!

I am a Linux user who has just transferred to Mac OS X 10.5 I would like to be able to use NEURON as in Linux, i.e. open a terminal and just type in nrngui code.hoc to run something
This would be much more convenient for me than having to drag things into icons and such. Is there anyway to do so?

Thank you in advance!
hines
Site Admin
Posts: 1692
Joined: Wed May 18, 2005 3:32 pm

Re: Running NEURON from terminal in OS X 10.5

Post by hines »

If you installed from a DMG, start a terminal window, make sure your PATH
has /Applications/NEURON-7.0/nrn/umac/bin and launch with
nrngui ...
japasto
Posts: 4
Joined: Wed Oct 01, 2008 2:06 pm

Re: Running NEURON from terminal in OS X 10.5

Post by japasto »

I'm wondering the same question.
I tried to write a bash file like

Code: Select all

PATH=/Applications/Neuron-7.1/nrn/umac/bin
and execute it before doing anything with neuron, but now the terminal doesn't recognize any standard command (like "ls", "mkdir" and so on).
Is there an easier way?
ted
Site Admin
Posts: 6305
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Running NEURON from terminal in OS X 10.5

Post by ted »

japasto wrote:I tried to write a bash file like

Code: Select all

PATH=/Applications/Neuron-7.1/nrn/umac/bin
Ordinarily PATH contains a bunch of paths, including /bin which is where handy stuff like ls is located.
PATH=/Applications/Neuron-7.1/nrn/umac/bin
replaces all of that with just one path. What you meant to do is
PATH=$PATH:/Applications/Neuron-7.1/nrn/umac/bin
which _appends_ /Applications/Neuron-7.1/nrn/umac/bin to whatever was in PATH in the first place.
japasto
Posts: 4
Joined: Wed Oct 01, 2008 2:06 pm

Re: Running NEURON from terminal in OS X 10.5

Post by japasto »

Thanks!
Post Reply