First install libreadline using your package installer:
sudo pacman -S readline.
Replace pacman by the package manager you are using (for example, apt).
Now make a symlink between your current libreadline version and to libreadline.so.7,
ln -s /usr/lib/libreadline.so.8 /usr/lib/libreadline.so.7, since
the version as of the time when this blog is written.
This should solve the issue!