Fix for configure: error: C++ preprocessor “/lib/cpp” fails sanity check & configure: error: *** termcap support not found

configure:5416: result: /lib/cpp
configure:5441: /lib/cpp conftest.cc
cpp: installation problem, cannot exec `cc1plus’: No such file or directory
configure:5441: /lib/cpp conftest.cc
cpp: installation problem, cannot exec `cc1plus’: No such file or directory
configure: error: C++ preprocessor “/lib/cpp” fails sanity check

install the following package

yum install gcc gcc-cpp gcc-c++

=====================================
checking for usb_init in -lusb… no
checking for vorbis_info_init in -lvorbis… no
checking for vpb_open in -lvpb… no
checking for compress in -lz… no
checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h… yes
checking for ZT_EVENT_REMOVED in zaptel/zaptel.h… yes
checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h… yes
configure: error: *** termcap support not found

Install follwing packages using yum.

bison
libtermcap
libtermcap-devel
newt
newt-devel
ncurses
ncurses-devel