I think you want to install the ncurses development filesnot the termcap package.