I installed them but still same errors.
I have now been focusing on those
undefined references previous to the compilation error, such:
Code: Select all
./.libs/libnrniv.so: undefined reference to `vtable for std::__cxx11::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21'
and, as you said before,
That makes me wonder if you have an incomplete g++ development environment or one that has inconsistent
libraries
it seems related to differences between my g++ and gcc versions and yours (
https://stackoverflow.com/questions/333 ... -stdstring)
This was also suggested in another NEURON post:
viewtopic.php?t=3880
But after trying with:
Code: Select all
$ make distclean
$ ./configure CXXFLAGS='-D_GLIBCXX_USE_CXX11_ABI=0' --prefix=`pwd` --with-iv=$HOME/neuron/iv --with-nrnpython=/home/andrea/anaconda3/envs/py27/bin/python --with-paranrn --disable-rx3d > configure.txt
$ make -j install
also:
Code: Select all
$ make distclean
$ ./configure CFLAGS='-D_GLIBCXX_USE_CXX11_ABI=0' --prefix=`pwd` --with-iv=$HOME/neuron/iv --with-nrnpython=/home/andrea/anaconda3/envs/py27/bin/python --with-paranrn --disable-rx3d > configure.txt
$ make -j install
and both of them:
Code: Select all
$ make distclean
$ ./configure CXXFLAGS='-D_GLIBCXX_USE_CXX11_ABI=0' CFLAGS='-D_GLIBCXX_USE_CXX11_ABI=0' --prefix=`pwd` --with-iv=$HOME/neuron/iv --with-nrnpython=/home/andrea/anaconda3/envs/py27/bin/python --with-paranrn --disable-rx3d > configure.txt
$ make -j install
I still have the same errors as before:
Code: Select all
collect2: error: ld returned 1 exit status
Makefile:746: fallo en las instrucciones para el objetivo 'nrniv'
make[2]: *** [nrniv] Error 1
make[2]: se sale del directorio '/home/andrea/neuron/nrn/src/nrniv'
Makefile:518: fallo en las instrucciones para el objetivo 'install-recursive'
make[1]: *** [install-recursive] Error 1
make[1]: se sale del directorio '/home/andrea/neuron/nrn/src'
Makefile:655: fallo en las instrucciones para el objetivo 'install-recursive'
make: *** [install-recursive] Error 1
I was wondering if maybe I can install another set of libraries (same version as yours) and make NEURON use those ones.
I currently have:
- g++-5 5.4.0-6ubuntu1~16.04.10
- gcc-5 5.4.0-6ubuntu1~16.04.10
From this post:
# Install build tools needed to compile and link NEURON
# ubuntu example
base="build-essential libreadline-dev libx11-dev libxext-dev
libncurses-dev zlib1g-dev"
bld="git automake libtool flex bison"
mpi="libopenmpi-dev" # if desire parallel
py="python3-dev python3-scipy cython3" # and/or python-dev etc.
sudo apt install $base $bld $mpi $py
I am also wondering whether the problem can come from using python 2.7, instead of 3. I suppose it has not much to do with this problem, but just to make sure it's not it.