Installing the Fast SQL Layer plugin on Mac OS X 10.7

If you're running QGis version 1.7 (trunk) from the KyngChaos site and you want to install the Fast SQL Layer plugin, you need to solve some dependencies first.

The paths below may not be the same on your machine if you've not installed GEOS and PROJ4 from the KyngChaos packages.


sudo easy_install-2.6 Pygments
sudo C_INCLUDE_PATH=/usr/local/pgsql/include/ easy_install-2.6 psycopg2
sudo LIBRARY_PATH=/Library/Frameworks/GEOS.framework/Versions/3/unix/lib/:/Library/Frameworks/PROJ.framework/Versions/4/unix/lib/ C_INCLUDE_PATH=/Library/Frameworks/GEOS.framework/Versions/3/unix/include/:/Library/Frameworks/PROJ.framework/Versions/4/Headers/ easy_install-2.6 pyspatialite


If the installation has been successful, you should not get an error when importing the modules, i.e.:


cristi:~ diciu$ python2.6
Python 2.6.6 (r266:84292, Jun 16 2011, 16:59:16)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygments, psycopg2, pyspatialite
>>>



Once you've installed the dependencies, you can go on installing the plugin using the QGIS GUI.