errors when compiling Neuron 6.0 on UBUNTU

Post Reply
ttpuff

errors when compiling Neuron 6.0 on UBUNTU

Post by ttpuff »

I'm following the steps shown in this paper to install:

http://www.neuron.yale.edu/ftp/ted/neur ... _press.pdf

When I finished this step:
./configure --prefix=`pwd` --with-iv=$HOME/neuron/iv-17 \ --with-paranrn

and compiled NEURON with make:

Code: Select all

make  all-recursive
make[1]: Entering directory `/home/jia/neuron/nrn-6.0'
Making all in src
make[2]: Entering directory `/home/jia/neuron/nrn-6.0/src'
Making all in readline
make[3]: Entering directory `/home/jia/neuron/nrn-6.0/src/readline'
if /bin/bash ../../libtool --mode=compile --tag=CC mpicc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../src/oc -I../../src/oc -I../../src/parallel -I../../src/nrnjava -I../../src/nrncvode -I../../src/ivos -I../../src/sundials -I../../src/nrnpython     -g -O2 -MT readline.lo -MD -MP -MF ".deps/readline.Tpo" -c -o readline.lo readline.c; \
        then mv -f ".deps/readline.Tpo" ".deps/readline.Plo"; else rm -f ".deps/readline.Tpo"; exit 1; fi

 mpicc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../src/oc -I../../src/oc -I../../src/parallel -I../../src/nrnjava -I../../src/nrncvode -I../../src/ivos -I../../src/sundials -I../../src/nrnpython -g -O2 -MT readline.lo -MD -MP -MF .deps/readline.Tpo -c readline.c  -fPIC -DPIC -o .libs/readline.o
readline.c: In function 'rl_read_key':
readline.c:819: error: invalid storage class for function 'next_macro_key'
readline.c: In function 'rl_dispatch':
readline.c:951: error: invalid storage class for function 'with_macro_input'
readline.c: At top level:
readline.c:1006: error: static declaration of 'with_macro_input' follows non-static declaration
readline.c:954: error: previous implicit declaration of 'with_macro_input' was here
readline.c:1017: error: static declaration of 'next_macro_key' follows non-static declaration
readline.c:822: error: previous implicit declaration of 'next_macro_key' was here
readline.c: In function 'rl_parse_and_bind':
readline.c:5710: error: invalid storage class for function 'substring_member_of_array'
readline.c: At top level:
readline.c:5949: error: static declaration of 'substring_member_of_array' follows non-static declaration
readline.c:5839: error: previous implicit declaration of 'substring_member_of_array' was here
make[3]: *** [readline.lo] Error 1
make[3]: Leaving directory `/home/jia/neuron/nrn-6.0/src/readline'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jia/neuron/nrn-6.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jia/neuron/nrn-6.0'
make: *** [all] Error 2
jia@jia-desktop:~/neuron/nrn-6.0$
something wrong with this file readline.c? Thanks.
ttpuff

Re: errors when compiling Neuron 6.0 on UBUNTU

Post by ttpuff »

the problem was solved by adding a package

sudo apt-get install libreadline5-dev

now it works.
Post Reply