ncurses5-config command not found

In this troubleshooting guide we learn how to fix ncurses5-config command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ncurses5-config: command not found

or when using sudo you get the following error message

sudo: ncurses5-config: command not found

Solutions to ncurses5-config: command not found

How To Fix ncurses5-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ncurses5-config is provided by libncurses-dev package.

libncurses-dev is:

The ncurses library routines are a terminal-independent method of updating character screens with reasonable optimization.

This package contains the header files, static libraries and symbolic links that developers using ncurses will need.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libncurses-dev

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libncurses-dev.

sudo apt -y install libncurses-dev

Or if you have aptitude installed you can use the following command.

sudo aptitude install libncurses-dev

Summary

In this tutorial we learn how to fix ncurses5-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.