wiki:PythonZopePsycopg

back to - https://it-dev.mpiwg-berlin.mpg.de/tracs/GIS/wiki/SystInst System Installation

With Mac OSX 10.5

Python:

cd .../Python-2.4.5

./configure --prefix=/usr/local/Python-2.4.5 MACOSX_DEPLOYMENT_TARGET=10.5

#FJK not anmyore necessary: echo '#define SETPGRP_HAVE_ARG' >> pyconfig.h

make
make test
sudo mkdir /usr/local/Python-2.4.5
sudo chmod 777 /usr/local/Python-2.4.5
make install

Zope:

cd .../Zope-2.11.1-final

./configure --prefix=/usr/local/Zope-2.11.1 --with-python=/usr/local/Python-2.4.5/bin/python

make
sudo mkdir /usr/local/Zope-2.11.1
sudo chmod 777 /usr/local/Zope-2.11.1
make install
/usr/local/Zope-2.11.1/bin/mkzopeinstance.py
	Directory: /Users/fknauft/zopeinstance
	Username: ......... (z.B. zopeadmin, fknauft)
	Passwort: ......... (z.B. 3333, fk1211)
	Verify passwort: ..........
./Users/fknauft/zopeinstance/bin/zopectl start

Psycopg2:

cd .../psycopg2-2.0.8

/usr/local/Python-2.4.5/bin/python setup.py build


falls bei setup.py build Fehler: ./psycopg/psycopg.h:27:22: error: libpg-fe.h No such file... dann fehlt in setup.cfg der Pfad zu pg_config! Also ergänzen!

/usr/local/Python-2.4.5/bin/python setup.py install
cp -r ZPsycopgDA /Users/fknauft/zopeinstance/Products

Start Zope:

Users/fknauft/zopeinstance/bin/runzope

oder

Users/fknauft/zopeinstance/bin/zopectl start

Start Postgres:

loging postgres
PW wa55er
cd /opt/local/lib/postgresql83/bin
./postgres -D /database/chinagis

Last modified 14 years ago Last modified on Feb 15, 2010, 12:45:10 PM