Enable autocomplete in an sqlite3 interactive shell

sqlite

I am using sqlite3 on a machine where I can use tab completion (ie .read abc<tab> will autocomplete to .read abcdefghij.db. I would like to know how to enable this on my personal machine.

Edit

Both machines are ubuntu linux and the shell is bash. I am referring to autocompletion in the sqlite interactive prompt.

Best Answer

Question was ultimately answered on superuser.

The solution is to compile sqlite3 with readline support.