Using ctypes with lib not found via ldconfig

Jean-Paul Calderone exarkun at divmod.com
Thu Dec 20 16:21:59 EST 2007


On 20 Dec 2007 20:36:20 GMT, Cylops <no at man.org> wrote:
>I'd like to use ctypes for my Linux app, but the libraries i want to
>use it on aren't in a standard location, and can't be found via ldconfig.
>They aren't in any of the directories listed in /etc/ld.so.conf, and they
>won't be. Our IT dept. controls this, and won't make them normally
>accessible for me.
>
>So, how do i steer ctypes towards these libs? Let's say this is one of
>them:
>
>    /home/me/otherLibs/libgaak.so.6
>

This generally works by setting the LD_LIBRARY_PATH environment variable.

Jean-Paul



More information about the Python-list mailing list