Page 1 of 1

Win XP-Neuron 7.0 how can this error be corrected?

Posted: Wed Jul 29, 2009 2:41 pm
by Elqui
I am trying to run this hoc, I had already run it on a linux server and on a mac OSX with a bit of work. However this has me beaten:

////////////////////////
///////////////////////
/lib/hocload.sh: Can't open /lib/hocload.sh: No such file or directory
nrniv: can't run: $NEURONHOME/lib/hocload.sh proc nrnmainmenu 1
in C:/nrn70/PFC_C3_5/experiment/kiki_synaptic/Juan_synaptic.hoc near line 11
load_proc("nrnmainmenu")
^
load_proc("nrnmainmenu" )
////////////////////////
////////////////////////

Juan_Synaptic.hoc is the main hoc file, the thing is that hocload.sh is there, I tried specifying the path explicitly but to no avail. Anyone has any ideas?

Thanks,

Re: Win XP-Neuron 7.0 how can this error be corrected?

Posted: Sat Aug 01, 2009 7:17 pm
by ted
Use
load_file("nrngui.hoc")
instead.

In writing portable code, it is best to avoid load_proc(), which tends to be very slow under MSWin. If a program needs the GUI, use load_file("nrngui.hoc") instead of load_proc("nrnmainmenu"). It's probably a good idea put this near the start of the file, as one would in C or C++ with #include statements.

Re: Win XP-Neuron 7.0 how can this error be corrected?

Posted: Mon Aug 03, 2009 2:17 pm
by Elqui
Thanks, that worked fine.