Changes between Version 1 and Version 2 of InstallationGuidelines/Mac/Developer/Manual


Ignore:
Timestamp:
11/06/11 11:18:45 (10 years ago)
Author:
Pat Tressel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Mac/Developer/Manual

    v1 v2  
    11= Installation Guidelines: Mac - Developer - Manual =
    22
     3== Install Apple developer tools ==
     4You will need [http://developer.apple.com/technologies/tools/ Apple's Xcode Developer Tools] (version 4.1 or later for Lion, 3.2 or later for Snow Leopard, or 3.1 or later for Leopard), found at the Apple Developer Connection site, on your Mac OS X installation CDs/DVD, or in the Mac App Store. Using the latest available version that will run on your OS is highly recommended. Ensure that the optional components for command line development are installed ("UNIX Development", plus "System Tools" in newer versions, or "Command Line Support" in older ones).
     5
     6// Caution: The Xcode download is over 3GB. //
     7
     8== Install GIS tools ==
     9For some GIS features of Eden (e.g. if you would rather use PostgreSQL with PostGIS instead of MySQL) install the [http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries GDAL framework]
     10
    311== Install Python ==
     12[http://python.org/ftp/python/2.7.2/python-2.7.2-macosx10.6.dmg Mac installer for Python]
    413
    5 1. FIRST:
    6 * You WILL NEED Apple's Xcode Developer Tools (http://developer.apple.com/technologies/tools/) (version 4.1 or later for Lion, 3.2 or later for Snow Leopard, or 3.1 or later for Leopard), found at the Apple Developer Connection site, on your Mac OS X installation CDs/DVD, or in the Mac App Store. Using the latest available version that will run on your OS is highly recommended. Ensure that the optional components for command line development are installed ("UNIX Development", plus "System Tools" in newer versions, or "Command Line Support" in older ones).
    7 * If you need some advanced GIS features of Eden. Before you proceed install the GDAL framework
    8  * http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries
    9 
    10 2. Python: http://python.org/ftp/python/2.7.2/python-2.7.2-macosx10.6.dmg
    11 
    12 3. You also need to install some modules of python
    13 (You may want to consider using Pip for these installations)
     14== Install Python packages ==
     15You can use [http://peak.telecommunity.com/DevCenter/EasyInstall easy_install] or [http://www.pip-installer.org/ pip] for these installations.
    1416{{{
    1517STATIC_DEPS=true sudo easy_install lxml
     
    2123}}}
    2224
    23 4. In case you want to use PostgreSQL - PostGIS (I assume you already installed the spatial modules before)
    24  Install the one clickInstaller sponsored by EnterpriseDB PostgreSQL and select also installation of postgis.
    25  Then based on this article http://schwuk.com/articles/2009/09/10/psycopg2-on-os-x install the python database driver
     25If you want to use PostgreSQL - PostGIS (for which you will need GDAL, above):
     26 * Install the one clickInstaller sponsored by EnterpriseDB PostgreSQL and select also installation of PostGIS.
     27 * Following [http://schwuk.com/articles/2009/09/10/psycopg2-on-os-x these instructions] install the Python database driver:
    2628{{{
    2729sudo easy_install pip
     
    2931defaults write com.apple.versioner.python Prefer-32-Bit -bool yes
    3032}}}
    31  without the last you will not be able to see available the PostgreSQL driver when web2py launch
     33   (Without the last Web2py will not be able to find the PostgreSQL driver.)
    3234
    33 === Trouble? ===
     35== Trouble? ==
    3436 * {{{lxml}}} can give trouble on OS X.  Try:
    3537  * {{{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])
    36   * 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)
    37  * Mac OS X: Xcode to compile some Python libraries:  http://developer.apple.com/technologies/tools/xcode.html
     38  * 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)
    3839
    3940== Next ==