Search code examples
terminalncursesraspberry-pi2

How to install ncurses on raspberry Pi?


How can I install the ncurses library on a raspberry Pi through the terminal?

Is there a sudo function that can be used to install it?


Solution

  • To install the NCurses library on a Debian based machine you can issue the apt-get command below:

    sudo apt-get install libncurses5-dev libncursesw5-dev 
    

    This will install both the libncurses5-dev (for ncurses) and libncursesw5-dev (for ncursesw) on your machine.