Changes between Initial Version and Version 1 of InstallationGuidelines/Mac/Developer

10/22/11 06:24:44 (10 years ago)
Fran Boon



  • InstallationGuidelines/Mac/Developer

    v1 v1  
     1== Install Python ==
     31. You will propably need the GIS features of Eden. Before you proceed install the GDAL framework
     4 *
     62. You also need to install some modules of python
     8STATIC_DEPS=true sudo easy_install lxml
     9sudo easy_install shapely
     10sudo easy_install reportlab
     11sudo easy_install xlwt
     12sudo easy_install pyserial
     13sudo easy_install tweepy
     163.In case you want to use PostgreSQL - PostGIS (I assume you already installed the spatial modules before)
     17 Install the one clickInstaller sponsored by EnterpriseDB PostgreSQL and select also installation of postgis.
     18 Then based on this article install the python database driver
     20sudo easy_install pip
     21PATH=$PATH:/Library/PostgreSQL/8.4/bin/ sudo pip install psycopg2
     22defaults write Prefer-32-Bit -bool yes
     24 without the last you will not be able to see available the PostgreSQL driver when web2py launch
     26=== Trouble? ===
     27 * {{{lxml}}} can give trouble on OS X.  Try:
     28  * {{{STATIC_DEPS=true sudo easy_install lxml}}} (adapted from [ this blog post])
     29  * remove other {{{libxml2}}} versions, such as may have been installed by {{{fink}}} or !MacPorts - ONLY works in unmodified python setup. In case you have modified your python you must link some how the python directory with /frameworks/python otherwise lxml will not being found(not tested)