Originally Posted by sunny.karthi
cd ../objects; /usr/bin/g++ -I../c++ -I../include -I. -DHAVE_CONFIG_H -D_GNU_SOURCE -DNDEBUG -I. -I../include -c ../c++/cursesf.cc
For some reason this line lacks the /usr/bin/g++ command. Check the Makefile under subdirectories c++ and look if some lines miss the $(CXX) command.
Anyway, I second the suggestion by jdkaye: why not install ncurses 5.9 from the official Ubuntu repositories?