install libncurses5-dev if installation of readline fails