[PyGreSQL] Help with build on amd-64 linux
Daryl Tester
Daryl.Tester at iocane.com.au
Tue Feb 21 18:03:51 EST 2006
Ken Southerland wrote:
> I have an AMD 64-bit platform running SuSE Linux 10 and am having the
> following problem using pygresql on it....
>
> ken at saturn> python -c "import _pg.so"
> Traceback (most recent call last):
> File "<string>", line 1, in ?
> ImportError: libpq.so.4: cannot open shared object file: No such file or
> directory
Shouldn't you just be running "import _pg" (not _pg.so)?
> So far I have tried adding the location of libpq.so.4 to my PYTHONPATH and
> that didn't work.
Shouldn't this be LD_LIBRARY_PATH or its 64 bit equivalent? (I'm not
that familiar with the 64 bit environment).
> This is an error I usually see when the libraries are
> incompatible rather than the file not actually existing, so I'm guessing its
> something like that.
Try running "ldd /usr/lib64/python2.4/site-packages/_pg.so" (or whatever
the path is) and manually verifying the paths returned are correct.
Also try "python -v -c 'import _pg'" to determine which _pg it's
trying to load.
--
Regards,
Daryl Tester, IOCANE Pty. Ltd.
More information about the PyGreSQL
mailing list