Re: Anyone succeeded installation on Mac OS X Lion?

353 views
Skip to first unread message
Message has been deleted

Ariel Nunez

unread,
Sep 28, 2011, 4:16:14 PM9/28/11
to geod...@googlegroups.com
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 -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

Will Tuladhar-Douglas

unread,
Sep 28, 2011, 9:51:04 PM9/28/11
to geodjango

On Sep 22, 8:53 pm, "Tell'em All" <taeli...@gmail.com> wrote:
> I am struggling with my first installation of GeoDjango.
>
> Following instructions on GeoDjango document,
>
> I tried installing from KyngChaos Packages, Fink, and MacPorts
>
> but they all gave me an error:
>
> createdb: could not connect to database postgres: could not connect to
> server: No such file or directory
>         Is the server running locally and accepting
>         connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
>

That's the usual message given when the postgres server isn't running.
You might look at the docs for installing and configuring Postgres
correctly.

- - -- --- ----- --------
Will Tuladhar-Douglas
http://tending.to/garden
Message has been deleted

Jeffrey Johnson

unread,
Sep 29, 2011, 4:03:18 PM9/29/11
to geod...@googlegroups.com
Hey, just realized that while this may seem very very stupid, its what
I had to do to get things to work on my fresh lion install.

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.
>
>

Reply all
Reply to author
Forward
0 new messages