I recently installed Metasploit and wanted to install the tab completion capability but was getting this error from this command:
After a very long time spent Googling, I discovered that you need to install these two packages to get the correct library files:
Could not find neither libtermcap.a, libncurses.a, or libcurses.
I also ran into a permission error when running make install. Just be root when running make install and everything will be fine!
sudo apt-get install libreadline5-dev libncurses5-dev
Hope this helps some people.