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

Post Reply
Elqui

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

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

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

Post 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.
Elqui

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

Post by Elqui »

Thanks, that worked fine.
Post Reply