how to install pyspatialite
From http://elgis.argeo.org/repos/6/, find the latest repo rpm, and install it as root:
`sudo rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm`
yum install python-devel (needed by Shapely to compile C extensions)yum install bzip2 bzip2-devel (needed by Scrapy : remove this when this is no longer a dependency)yum install gdal gdal-develyum install geos geos-develyum install proj proj-develyum install libxml2 libxml2-devel (needed to make xpath searching efficient)yum install libxslt libxslt-develyum install sqlite sqlite-develyum install expat expat-devel (this is needed by spatialite-tools)TODO: Add instructions for doing this
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig trick.First, let’s get the latest version of sqlite3 compiled and installed (to /usr/local/lib — so this shouldn’t mess with the yum installed version). For this, head over to http://www.sqlite.org/download.html and download the latest sqlite3-autoconf tarball. For me, that was http://www.sqlite.org/2013/sqlite-autoconf-3080100.tar.gz as of this time of writing.
wget http://www.sqlite.org/2013/sqlite-autoconf-3080100.tar.gz or something similar../configuresudo make install if you are not running as root (ignore ‘sudo’ if you are running as root).export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig./configure —enable-freexl=nosudo make installexport PKG_CONFIG_PATH=/usr/local/lib/pkgconfig./configuresudo make install./configure —enable-freexl=nosudo make installenable_load_extension method availableThe default sqlite3 module or the external pysqlite modules don't come with the enable_load_extension method enabled (since some platforms have SQLite libraries which are compiled without this feature).
So, we have to compile the pysqlite3 extension with this feature enabled (since its easier to do this than to compile python)