On Tue, Aug 01, 2000 at 10:54:50AM -0700, Stephen Nosal wrote:
> Folks -
> 
> I could use a hand here - I'm trying to compile the PoPy module for python so I can 
>use the ZPoPyDA to connect to my PostgreSQL database.
> 
> I keep getting the same compile error -
> 
> gcc - shared PoPymodule.o -lpq -o PoPymodule.so
> /usr/i486-suse-linux/bin/ld: cannot find -lpq

-Find libpq.so on your machine.
-Edit the last? (going from memory) line of Makefile, adding
   -L/directory/that/holds/your_libpq 
 (just the directory, not the filename) right before -lpq

There is certainly a more elegant way to do the same, but it worked for
me.

> 
> I have compiled other binaries on this machine, including Zope 2.2. Python runs 
>fine, I just don't know enough about ld to understand the error. (I get the same 
>error trying to compile ZPyGreSQLDA.
> 
> Any pointers would be greatly appreciated.
> 
> - Steve

-- 
Patrick Lewis <[EMAIL PROTECTED]>

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to