[PyGreSQL] Proiblems installing pygres
Christoph Zwerschke
cito at online.de
Mon Apr 24 12:21:17 EDT 2006
Hallo Maik,
> error: invalid Python installation: unable to open
> /usr/lib/python2.3/config/Makefile (No such file or directory)"
That looks like you haven't installed the python-devel package.
> I also tried compiling manualy with
> "cc -fpic -shared -o _pg.so -I[/usr/local/cdat/include/python2.4/]
> -I[/usr/include/postgresql/server/] -L[/usr/lib/] -lpq pgmodule.c"
As D'Arcy already noticed, python2.4 seems to be wrong on a python2.3
system. Also, you must type paths without the brackets. If you really
want to compile it manually, something like this should do:
cc -fpic -shared -o _pg.so -I/usr/include/python -I/usr/include/pgsql
-I/usr/include/pgsql/server/ -L/usr/lib/ -lpq pgmodule.c
However, after installing python-devel, a simple "python setup.py build"
should do as well.
-- Christoph
More information about the PyGreSQL
mailing list