[Zope] compile ZPoPyDA product problems
Stephen Nosal
stephennosal@e3mil.com
1 Aug 2000 14:01:45 -0700
Well, I'm getting somewhere. The make and make install on the PoPymodule completed with no errors, but now in python the import PoPy returns the following:
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: /usr/lib/python1.5/site-packages/PoPymodule.so: undefined symbol: PQfsize
This is from the PoPy-1.2.1 tarball.
On another note, ZPyGreSQLDA appears to be up and running.
Thanks for all of the help.
- Steve
On Tue, 01 August 2000, jpenny@universal-fasteners.com wrote:
>
> 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
> >
> > 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.
> >
>
> This message is saying that the postgres library libpq cannot
> be found by the linker (postgres was formerly called PostQuel,
> hence pq). Not having Suse, which I have heard has somewhat
> unusual layout, I cannot tell you for sure what to do...
>
> but try find / -name "libpq*"
>
> THis should find any libpq's on your system
>
> Then if libpq is in /usr/lib/foo, do
> export LD_LIBRARY_PATH=/usr/lib/foo
> gcc - shared PoPymodule.o -lpq -o PoPymodule.so
>
>
> > Any pointers would be greatly appreciated.
> >
> > - Steve
> >
> >
> > __________________________________________________________________
> > Get your Private, Anti-Spam, Free Email at http://e3mil.com
> > and Step into a Friendly Universe!
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > 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 )
> >
__________________________________________________________________
Get your Private, Anti-Spam, Free Email at http://e3mil.com
and Step into a Friendly Universe!