configure: error: SQLite3 library not found
I tried both, sudo apt-get install sqlite and building from source but problem persists. Then I tried the following command and it worked. May be it'll help someone else too.
sudo apt-get install libsqlite3-dev