Page 1 of 1

Problem with nrnivmodl from command line on OSX Mountain Lio

Posted: Sat Feb 23, 2013 10:18 am
by cbutson
I have a MacBook Pro running Mountain Lion 10.8.2. I have installed the Developer Tools including command line tools (Xcode 4.6). I'm trying to run nrnivmodl from the command line but getting the following errors:

JonesEtAl2009] lcl% nrnivmodl mod_files
/Users/lcl/Downloads/JonesEtAl2009
mod_files/ar.mod mod_files/ca.mod mod_files/cad.mod mod_files/cat.mod mod_files/dipole.mod mod_files/kca.mod mod_files/km.mod mod_files/pp_dipole.mod
ar.mod ca.mod cad.mod cat.mod dipole.mod kca.mod km.mod pp_dipole.mod
make: /Applications/NEURON-7.2/nrn/i386/bin/nrnmech_makefile: No such file or directory
make: *** No rule to make target `/Applications/NEURON-7.2/nrn/i386/bin/nrnmech_makefile'. Stop.

I note that the nrnmech_makefile exists in the directory above, even though make reports "No such file or directory". I also note I can get mod files to compile if I drag and drop them on mknrndll. Perhaps I'm missing something simple? Thanks.

Re: Problem with nrnivmodl from command line on OSX Mountain

Posted: Sat Feb 23, 2013 12:16 pm
by cbutson
I'm not sure if this is related, but it suggests another possible problem with OSX Developer Tools:
I'm trying to compile nrn from source, but the command
./configure --prefix=$IDIR/iv --enable-carbon
fails with the message
configure: WARNING: unrecognized options: --enable-carbon

Re: Problem with nrnivmodl from command line on OSX Mountain

Posted: Tue Feb 26, 2013 6:31 am
by hines
From the mention of i386, I gather this is a carbon version of NEURON which predates the introduction of Lion. I've been intending for some time to
update the standard distribution merely to avoid configuration problems. Anyway, could you drag your current installation of NEURON to the trash and try
one of the dmg installers at http://www.neuron.yale.edu/ftp/neuron/versions/alpha/
The one with i386-apple-osx10.6.8 is a carbon version and should work on your machine but you might prefer the 64 bit x11 version
http://www.neuron.yale.edu/ftp/neuron/v ... 10.7.5.dmg
Anyway, nrnivmodl seems to work on mountain lion with either of the above.

With regard to --enable-carbon, I have not built with that using an os after snow leopard. My attempt this morning on Lion was unsuccessful and since carbon
is no longer supported on osx it probably isn't worth the effort. I notice I do have to tweak build.sh a bit since glibtoolize got moved.