I'm trying to produce the neuron module for my native Python 2.6.3 installation on a macbook pro 15 with OS X 10.6 (Snow Leopard). I've installed XCode 3.2.1 (full install).
I am working with the hg repositories of IV and NEURON. --enable-carbon with configure will not work for neither of these, so I have compiled NEURON using
Code: Select all
sh build.sh
./configure ./configure --prefix=/Applications/NEURON-7.1/nrn --without-iv --with-nrnpython --enable-UniversalMacBinary PYLIBLINK='-framework Python' PYLIB='-framework Python'
make
make install
cd /src/nrnpython/
iv will compile using ./configure --prefix=/Applications/NEURON-7.1/iv/ --enable-UniversalMacBinary, but it will not work with the NEURON configure thing using --with-iv=/Applications/NEURON-7.1/iv/. Iv is not necessary for the neuron python module, no?
Then I edit setup.py; changing the nrnpython_exec-line to
nrnpython_exec = "/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python"
running python setup.py install yield the following error message
Code: Select all
imt-iw23013124:nrnpython aehagen$ python setup.py install
running install
running build
running build_py
running build_ext
building 'neuron.hoc' extension
g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.6/inithoc.o -L/Applications/NEURON-7.1/nrn/umac/lib -L -lnrnpython -lnrnoc -loc -lnrniv -livoc -lmemacs -lmeschach -lneuron_gnu -lnrnmpi -lscopmath -lsparse13 -lsundials -lIVhines -lreadline -o build/lib.macosx-10.3-fat-2.6/neuron/hoc.so
ld: library not found for -lIVhines
collect2: ld returned 1 exit status
ld: library not found for -lIVhines
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/HY/HYDLuOTlFy4uSRaI4jMNdk+++TQ/-Tmp-//cczBEN2L.out (No such file or directory)
error: command 'g++' failed with exit status 1