When I try

make menuconfig

I get this

Install ncurses (ncurses-devel or libncurses-dev

When I try to install it

Package libncurses5-dev is not available, but is referred to by another package.

aptitude search libncurses
    i   libncurses5                     - shared libraries for terminal handling    
i A libncurses5:i386                - shared libraries for terminal handling    
i   libncursesw5                    - shared libraries for terminal handling (wi

Where I can find libncurses5-dev ?


Did you try what was suggested? i.e. libncurses-dev or ncurses-devel ? Not libncurses5-dev

Which distro/version are you using?

Looks like libncurses-dev is a virtual package which brings up libncurses5-dev in Ubuntu 16.04. Fedora 28 has ncurses-devel available in the updates repo.

  • Using debian Package libncurses-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source and ncurses E: Unable to locate package ncurses-devel – user297133 Jun 27 '18 at 5:38
  • 1
    Which version? Check that the relevant repositories are enabled. /etc/apt/sources.list – adatum Jun 27 '18 at 5:54
  • deb http://ftp.ua.debian.org/debian/ stretch-backports main deb-src http://ftp.ua.debian.org/debian/ stretch-backports main deb http://security.debian.org/ stretch/updates main deb-src http://security.debian.org/ stretch/updates main # jessie-updates, previously known as 'volatile' deb http://ftp.ua.debian.org/debian/ stretch-updates main deb-src http://ftp.ua.debian.org/debian/ stretch-updates main – user297133 Jun 27 '18 at 5:56
  • Do not bury this information in answer comments. Put it in the question. – JdeBP Jun 27 '18 at 11:52

To install libncurses5-dev ,you should have the following line in your sources.list (from the comment ):

deb http://deb.debian.org/debian/ stretch main

Run :

# echo deb http://deb.debian.org/debian/ stretch main >> /etc/apt/sources.list
# apt update
# apt install libncurses5-dev 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.