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


Ignore:
Timestamp:
10/22/11 06:24:44 (10 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Mac/Developer

    v1 v1  
     1== Install Python ==
     2
     31. You will propably need the GIS features of Eden. Before you proceed install the GDAL framework
     4 * http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries
     5
     62. You also need to install some modules of python
     7{{{
     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
     14}}}
     15
     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 http://schwuk.com/articles/2009/09/10/psycopg2-on-os-x install the python database driver
     19{{{
     20sudo easy_install pip
     21PATH=$PATH:/Library/PostgreSQL/8.4/bin/ sudo pip install psycopg2
     22defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
     23}}}
     24 without the last you will not be able to see available the PostgreSQL driver when web2py launch
     25
     26=== Trouble? ===
     27 * {{{lxml}}} can give trouble on OS X.  Try:
     28  * {{{STATIC_DEPS=true sudo easy_install lxml}}} (adapted from [http://blog.ianbicking.org/2008/12/10/lxml-an-underappreciated-web-scraping-library/ 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)
     30