Here is how I configure my OSX machine to do GeoDjango / GIS / Python
work, note that after the upgrade from Snow Leopard to Lion I had to
re-install XCode.
Beware, it has way more than just configuring GeoDjango. Feel free to
only look at the parts you are interested in.
Ariel.
#
# Configuring the environment in OSX
#
Download and install XCode (3GB: ouch)
#Install homebrew (package manager)
ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"
#Install git
brew install git
#Install the gis stack (geos, proj4, postgres, postgis, gdal)
brew install postgis gdal
# Note the instructions to take it up and down on a development machine:
# start manually with:
pg_ctl -D /usr/local/var/postgres -l
/usr/local/var/postgres/server.log start
# And stop with:
pg_ctl -D /usr/local/var/postgres stop -s -m fast
# Command line irc client
brew install irssi
brew install python
brew install pip
brew install exiftool
brew install libevent
pip install ipython
pip install mercurial
pip install virtualenv
pip install BeautifulSoup==3.0.8.1
pip install docutils
pip install python-dateutil
pip install Markdown==2.0.3
pip install PyYAML
pip install ZSI
pip install python-memcached
pip install smartypants
pip install vobject
pip install httplib2
pip install ftputil==2.2.3
pip install geopy
pip install psycopg2
pip install mimeparse
pip install lxml
pip install gevent
vim .profile
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2.7
export WORKON_HOME=~/.venvs
source /usr/local/Cellar/python/2.7/bin/virtualenvwrapper.sh
mkdir -p $WORKON_HOME
# For every project to set up the venv:
mkvirtualenv myproject
workon myproject
pip install Django
django-admin.py startproject myproject
# do stuff
Use '/tmp' as the HOST in your DB connection setup.
Yes, very very strange, but does seem to work. Something to do with
where the lock file is written I suspect.
See this blog post.
http://jeffammons.net/2011/09/fixing-postgres-on-mac-10-7-tiger-for-django/
Jeff
On Thu, Sep 29, 2011 at 12:58 PM, Gluwa <tael...@gmail.com> wrote:
> Thank you Ariel,
>
> I'm trying your configuration now.
> I'll post the result later. (Probably it'll took a while.)
>
>
> On Sep 29, 5:16 am, Ariel Nunez <ingenieroar...@gmail.com> wrote:
>> taelimoh,
>>
>> Here is how I configure my OSX machine to do GeoDjango / GIS / Python
>> work, note that after the upgrade from Snow Leopard to Lion I had to
>> re-install XCode.
>>
>> Beware, it has way more than just configuring GeoDjango. Feel free to
>> only look at the parts you are interested in.
>>
>> Ariel.
>>
>> #
>> # Configuring the environment in OSX
>> #
>> Download and install XCode (3GB: ouch)
>>
>> #Install homebrew (package manager)
>> ruby -e "$(curl -fsSLhttps://gist.github.com/raw/323731/install_homebrew.rb)"
> --
> You received this message because you are subscribed to the Google Groups "geodjango" group.
> To post to this group, send email to geod...@googlegroups.com.
> To unsubscribe from this group, send email to geodjango+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/geodjango?hl=en.
>
>