nrnivmodl compiling in Linux

Post Reply
dzocchi

nrnivmodl compiling in Linux

Post by dzocchi » Fri Jun 29, 2012 7:20 pm

I'm using ubuntu 2.6.38 and installed Neuron from the 32 bit deb file. When trying to compile mod files from another model, I get the following error:

/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [libnrnmech.la] Error 1

I have been searching the forums but can't really find anything that helps much. Does anyone know what the problem could be?

Thanks!

ted
Site Admin
Posts: 5369
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: nrnivmodl compiling in Linux

Post by ted » Sat Jun 30, 2012 2:23 pm

Use your distribution's package manager to discover and install the package(s) that it needs for development or compilation of programs that use ncurses.

A comment: despite its general excellence in most other areas, Ubuntu has been the principal source of questions like this. For some reason or other, it doesn't offer users a simple option like "install everything I need to develop and compile programs written in C or C++."

tom_morse
Posts: 40
Joined: Wed May 18, 2005 10:23 pm
Location: Yale University School of Medicine
Contact:

Re: nrnivmodl compiling in Linux

Post by tom_morse » Fri Mar 08, 2013 2:01 pm

In ubuntu it is convenient to use synaptic as a package manager. If you don't have it you can add it with a command like

Code: Select all

sudo apt-get install synaptic
When I used synaptic to discover what was missing (I typed ncurses in the synaptic search box when i received the ncurses missing message) I cured the problem by installing libncurses5-dev (in synaptic you can mark it for install and then apply).

sanjaybioe
Posts: 14
Joined: Sun Apr 24, 2011 11:35 pm

Re: nrnivmodl compiling in Linux

Post by sanjaybioe » Tue Oct 29, 2013 7:56 am

Dear Tom, what if it is opensuse 13.1? I too get the same error on lncurses.

ted
Site Admin
Posts: 5369
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: nrnivmodl compiling in Linux

Post by ted » Tue Oct 29, 2013 11:14 am

Use your distribution's package manager to discover and install the package(s) that it needs for development or compilation of programs that use ncurses.

oren
Posts: 54
Joined: Fri Mar 22, 2013 1:03 am

Re: nrnivmodl compiling in Linux

Post by oren » Sat Mar 24, 2018 4:41 am

Hi usually when I get this problem in a new computer (ubuntu) I do the following:

Code: Select all

sudo apt-get install libncurses-dev

luadam4c
Posts: 1
Joined: Wed Mar 28, 2018 6:44 pm

Re: nrnivmodl compiling in Linux

Post by luadam4c » Tue Jun 19, 2018 6:48 pm

I needed this as well (Ubuntu 18.04 LTS):

Code: Select all

sudo apt-get install gcc
For some reason synaptic didn't pick this up.

Post Reply