On Jan 2, 2008 12:07 AM, LRP <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I'm trying to install django following directions in The Django Book.
> I would like to run with Postgres on my Debian etch system.
>
> When I try to build psycopg2.0.6 I get the error messages shown below.
> Would much appreciate any help to enable me to bring up a healthy
> system.
>
>
Why not just install a pre-built binary?  The note in the psycopg2 wiki
about psycopg 1 only being available in the Debian repositories seems to be
out of date, see:

http://packages.debian.org/etch/python-psycopg2


> ~/django/psycopg2-2.0.6$ python setup.py build
> running build
> running build_py
> creating build
> creating build/lib.linux-i686-2.4
> creating build/lib.linux-i686-2.4/psycopg2
> copying lib/psycopg1.py -> build/lib.linux-i686-2.4/psycopg2
> copying lib/errorcodes.py -> build/lib.linux-i686-2.4/psycopg2
> copying lib/pool.py -> build/lib.linux-i686-2.4/psycopg2
> copying lib/extensions.py -> build/lib.linux-i686-2.4/psycopg2
> copying lib/__init__.py -> build/lib.linux-i686-2.4/psycopg2
> copying lib/extras.py -> build/lib.linux-i686-2.4/psycopg2
> copying lib/tz.py -> build/lib.linux-i686-2.4/psycopg2
> running build_ext
> Warning: /bin/sh: pg_config: command not found
> building 'psycopg2._psycopg' extension
> creating build/temp.linux-i686-2.4
> creating build/temp.linux-i686-2.4/psycopg
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-
> prototypes -fPI C -DPY_MAJOR_VERSION=2 -DPY_MINOR_VERSION=4 -
> DHAVE_PYBOOL=1 -DHAVE_DECIMAL=1 -DH AVE_PYDATETIME=1 -
> DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.0.6 (dec dt  ext
> pq3)" -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_DISPLAY_SIZE=1 -
> DPSYCOPG_NEW_BOOLEAN =1 -DHAVE_PQFREEMEM=1 -DHAVE_PQPROTOCOL3=1 -I/usr/
> include/python2.4 -I. -c psyco pg/psycopgmodule.c -o build/temp.linux-
> i686-2.4/psycopg/psycopgmodule.o
> In file included from psycopg/psycopgmodule.c:29:
> ./psycopg/connection.h:27:22: error: libpq-fe.h: No such file or
> directory
> [more snipped]


If you do really want to build it yourself, this is the likely cause of the
following errors.  I don't know if libpq-fe.h comes with psycopg2 or
something else, but gcc can't find it.  You'd probably get more help fixing
this on a psycopg2 list than here.

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to