Running NEURON from terminal in OS X 10.5

Running NEURON from terminal in OS X 10.5

Postby ben24 » Tue Nov 25, 2008 7:12 pm

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!
ben24
 
Posts: 1
Joined: Tue Nov 25, 2008 7:08 pm

Re: Running NEURON from terminal in OS X 10.5

Postby hines » Wed Nov 26, 2008 5:56 pm

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 ...
hines
Site Admin
 
Posts: 572
Joined: Wed May 18, 2005 3:32 pm

Re: Running NEURON from terminal in OS X 10.5

Postby japasto » Sun Nov 01, 2009 5:25 pm

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?
japasto
 
Posts: 4
Joined: Wed Oct 01, 2008 2:06 pm

Re: Running NEURON from terminal in OS X 10.5

Postby ted » Sun Nov 01, 2009 9:27 pm

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

Re: Running NEURON from terminal in OS X 10.5

Postby japasto » Mon Nov 02, 2009 7:16 am

Thanks!
japasto
 
Posts: 4
Joined: Wed Oct 01, 2008 2:06 pm


Return to OS X

Who is online

Users browsing this forum: No registered users and 1 guest