| 1 | | = Installation on MacOSX = |
| 2 | | === Before you begin === |
| 3 | | 1. You will propably need the GIS features of Eden. Before you proceed install the GDAL framework |
| 4 | | |
| 5 | | http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries |
| 6 | | |
| 7 | | 2. You also need to install some modules of python |
| 8 | | |
| 9 | | STATIC_DEPS=true sudo easy_install lxml |
| 10 | | |
| 11 | | - sudo easy_install shapely , also install the same way reportlab, pyserial, tweepy, xlwt |
| 12 | | |
| 13 | | 3.In case you want to use PostgreSQL - PostGIS (I assume you already installed the spatial modules before) |
| 14 | | Install the one clickInstaller sponsored by EnterpriseDB PostgreSQL and select also installation of postgis. |
| 15 | | Then based on this article http://schwuk.com/articles/2009/09/10/psycopg2-on-os-x install the python database driver |
| 16 | | |
| 17 | | sudo easy_install pip |
| 18 | | |
| 19 | | PATH=$PATH:/Library/PostgreSQL/8.4/bin/ sudo pip install psycopg2 |
| 20 | | |
| 21 | | defaults write com.apple.versioner.python Prefer-32-Bit -bool yes |
| 22 | | |
| 23 | | without the last you will not be able to see available the PostgreSQL driver when web2py launch |
| 24 | | === Download Sahana Eden === |
| 25 | | If NOT being a Developer, then you can get the last stable release from: |
| 26 | | * http://launchpad.net/sahana-eden/trunk/0.5.4/+download/web2py.app.eden-0.5.4.w2p |
| 27 | | NB The file should end in .w2p - if you have a trailing .gz after that, then remove it from the filename |
| 28 | | |
| 29 | | === Install Web2Py === |
| 30 | | * Download: http://web2py.com/examples/static/web2py_osx.zip |
| 31 | | * unzip |
| 32 | | |
| 33 | | NB This isn't well-tested...may be better off downloading the Source version: |
| 34 | | * http://eden.sahanafoundation.org/web2py_src-1.85.3.zip |
| 35 | | |
| 36 | | === Launch Web2Py === |
| 37 | | * {{{web2py.py}}} |
| 38 | | * Select a Password |
| 39 | | * 'click here for the administrative interface' |
| 40 | | * Enter same password |
| 41 | | |
| 42 | | === Install Sahana === |
| 43 | | * upload application: web2py.app.eden-0.5.4.w2p |
| 44 | | * rename it: eden |
| 45 | | * submit |
| 46 | | |
| 47 | | === Done! === |
| 48 | | * http://127.0.0.1:8000/eden/ |
| 49 | | |
| 50 | | === Trouble? === |
| 51 | | * {{{lxml}}} can give trouble on OS X. Try: |
| 52 | | * {{{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]) |
| 53 | | * 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) |
| 54 | | |
| 55 | | ---- |
| 56 | | InstallationGuidelines |
| | 1 | See InstallationGuidelines/Mac |