OK, figured it out (with help).

What was happening is that the psycopg configure script sets up the
makefile to compile a universal binary (i386 and ppc). The trouble is
that if you build PostgreSQL from scratch, it only builds it for the
native architecture. So, the configure script cannot find the
appropriate library for the other architecture. Thus, the solution was
to install a universal binary of Postgres. A nice installer can be
found at http://www.entropy.ch/software/macosx/postgresql/.

Also you must set the variable:

export MACOSX_DEPLOYMENT_TARGET=10.4

before "make" or the linker with fail.

The nice end to the story is that I now have a nice universal version
of psycopg.so that I can put on any Mac.

Also, please note that I made a typo in the initial post. The configure
option is "--with-postgres-libraries=/usr/local/pgsql/lib", NOT
"--with-postgres-lib=/usr/local/pgsql/lib".

Thanks to all who helped me out, and especially to Chris Campbell (Big
Nerd ranch).


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

Reply via email to