Error when run aql on ubuntu 16

after installing Aerospike server and trying to run aql i got this error, i tried to install the mentioned lib but the problem still exist.

aql: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory

Did you install the tools package for Ubuntu 16?

Maybe you need to install readline:

sudo apt-get install libreadline6