I am tearing my hair out trying to install Spatialite for GeoDjango!
I am already using Homebrew, it\'s generally easy and convenient so I initially tried to follow
I had the same error: SQLite header and source version mismatch.
SQLite header and source version mismatch
For me it was enough to update libsqlite3-dev.
libsqlite3-dev
After that invoking $ spatialite geo.db "SELECT InitSpatialMetaData();" creates proper database.
$ spatialite geo.db "SELECT InitSpatialMetaData();"