nrnivmodl compiling in Linux

nrnivmodl compiling in Linux

Postby 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!
dzocchi
 
Posts: 7
Joined: Wed Dec 07, 2011 7:33 pm

Re: nrnivmodl compiling in Linux

Postby 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++."
ted
Site Admin
 
Posts: 3591
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: nrnivmodl compiling in Linux

Postby tom_morse » Fri Mar 08, 2013 3: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).
tom_morse
 
Posts: 31
Joined: Wed May 18, 2005 10:23 pm
Location: Yale University School of Medicine


Return to UNIX/Linux

Who is online

Users browsing this forum: No registered users and 1 guest