Your system does not have a library named "ncurses". Install this package first, then compile cmake again, you will get ccmake.