Do you know the type of file system on your boot drive? It must be complied in the kernel and *not* as a module. This is set in the kernel...
Check the command you typed. It should be "libncurses5-dev" not "ncurses-dev"
Separate names with a comma.