Results 1 to 6 of 6

Thread: "You need either libncurses, libcurses, or libtermcap to compile" but I have libncurses 5 and 6

  1. #1

    Default "You need either libncurses, libcurses, or libtermcap to compile" but I have libncurses 5 and 6

    Pretty much in the title. Trying to compile a program called NEST. using the command "./configure --prefix=$HOME/opt/nest" (I am not sure this is the correct prefix I should be using).

    It runs fine until this point:

    checking for setenv... yes
    checking for sigaction... yes
    checking for expm1 ... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for gmake... /usr/bin/gmake
    checking for tgetstr in -lcurses... no
    checking for tgetstr in -ltermcap... no
    checking for tgetstr in -lncursesw... no
    checking for tgetstr in -lncurses... no
    configure: error: You need either libncurses, libcurses, or libtermcap to compile NEST.


    Presumably the problem involves tgetstr.

    I'm kinda a noob, so any help is appreciated.

  2. #2

    Default Re: "You need either libncurses, libcurses, or libtermcap to compile" but I have libncurses 5 and 6

    Do you have "ncurses-devel" installed?
    You need the -devel packages if you want to compile stuff...

    tgetstr seems to actually be in libtermcap though, so check that you have "termcap" installed too.

    What NEST is it that you are trying to compile? If it's the "Neuron Simulator", you could also just install it from here:
    http://software.opensuse.org/package/nest

  3. #3

    Default Re: "You need either libncurses, libcurses, or libtermcap to compile" but I have libncurses 5 and 6

    Both methods suggested above work.

    However I am having another problem with this package

    This package should include a python module.
    When run the command import nest (the correct command) in a python script I get this

    import nest
    ---------------------------------------------------------------------------
    ImportError Traceback (most recent call last)
    <ipython-input-1-c493c116876b> in <module>()
    ----> 1 import nest


    /usr/lib64/python2.7/site-packages/nest/__init__.py in <module>()
    50 sys.setdlopenflags(ctypes.RTLD_GLOBAL)
    51
    ---> 52 from . import pynestkernel as _kernel
    53 from . import hl_api
    54


    ImportError: cannot import name pynestkernel


    If this is completely off topic freely ignore it, but If you know anything about NEST then any help is appreciated

  4. #4

    Default Re: "You need either libncurses, libcurses, or libtermcap to compile" but I have libncurses 5 an

    Quote Originally Posted by chippyprice View Post
    Both methods suggested above work.

    However I am having another problem with this package

    This package should include a python module.
    There are separate packages for the python modules it seems.
    For python2:
    http://software.opensuse.org/package/python-PyNEST

    and for python3:
    http://software.opensuse.org/package/python3-PyNEST

    If you added the science repo to install NEST, you should just find them in YaST now too.

  5. #5

    Default Re: "You need either libncurses, libcurses, or libtermcap to compile" but I have libncurses 5 and 6

    I have installed pyNest (only for python 2, I do not have python 3). This was installed before I encountered the latest problem. All other python modules I have installed (SciPy, etc) work fine

  6. #6

    Default Re: "You need either libncurses, libcurses, or libtermcap to compile" but I have libncurses 5 an

    Quote Originally Posted by chippyprice View Post
    I have installed pyNest (only for python 2, I do not have python 3). This was installed before I encountered the latest problem.
    Well, I can reproduce the problem here (with both python2 and python3), but I have no idea what's causing it or how to fix it.
    (I'm not really a python expert either...)

    Maybe try to do a full switch to the science repo:
    https://en.opensuse.org/SDB:Vendor_c..._Vendor_change

    You might also consider filing a bug report.
    Maybe that's some packaging bug.
    Last edited by wolfi323; 05-Jul-2015 at 04:22.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •