Code: Select all
IDIR=${HOME}/neuron
IVDIR=iv_epd32
NRNDIR=nrn_epd32
hg clone http://www.neuron.yale.edu/hg/neuron/iv $IVDIR
hg clone http://www.neuron.yale.edu/hg/neuron/nrn $NRNDIR
cd $IVDIR
./build.sh
./configure --prefix=$IDIR/$IVDIR CFLAGS='-arch i386' CXXFLAGS='-arch i386'
make -j 2
make install
cd ..
cd $NRNDIR
./build.sh
./configure PYLIBLINK='-framework Python' PYLIB='-framework Python' CFLAGS='-arch i386' CXXFLAGS='-arch i386' --prefix=$IDIR/$NRNDIR --with-iv=$IDIR/$IVDIR --with-nrnpython
make -j 2
make install
cd src/nrnpython
sudo python setup.py install
If you want to compile 64-bit versions, switch the default python to a 64-bit EPD and then:
Code: Select all
IDIR=${HOME}/neuron
IVDIR=iv_epd64
NRNDIR=nrn_epd64
hg clone http://www.neuron.yale.edu/hg/neuron/iv $IVDIR
hg clone http://www.neuron.yale.edu/hg/neuron/nrn $NRNDIR
cd $IVDIR
./build.sh
./configure --prefix=$IDIR/$IVDIR
make -j 2
make install
cd ..
cd $NRNDIR
./build.sh
./configure PYLIBLINK='-framework Python' PYLIB='-framework Python' --prefix=$IDIR/$NRNDIR --with-iv=$IDIR/$IVDIR --with-nrnpython
make -j 2
make install
cd src/nrnpython
sudo python setup.py install
As attractive as going 64-bit sounds, I have not yet been able to get Mayavi2 (and vtk) going. For 3D visualization with Mayavi2, I'm sticking with 32-bit for now.
These scripts are also similar to those found at http://tfoutz99.github.com/Neuron3D/May ... n-Mac.html.