If you get a problem with such as "libreadline.so.5: cannot open shared object file: No such file or directory.", it can be solved on Debian/Ubuntu by doing this:
apt-get install libreadline5
If you get a problem with such as "libncursesw.so.5 cannot open shared object file: No such file or directory", it can be solved on Debian/Ubuntu by doing this:
apt-get install libncursesw5