Where is Python looking for library binaries?

I am trying to combine the Python library (fontforge) together so that my script runs on a machine without a library installed (but with Python installed). So far, I have been trying to copy .so files matching the “Missing Libraries” errors to the current directory, and although it worked for some, it did not work for others, I get “Missing library: libgunicode”, although I have libgunicode .so in the current directory. Is there some kind of setting that I can configure to find it?

Edit: I'm on Ubuntu

Update . I got it to work by setting LD_LIBRARY_PATH =. And then copying the “.so” files to the current directory until I get more “library not found” messages

+4
source share
1 answer

Assuming you are on Linux, the OS looks for shared objects in the directories listed in /etc/ld.so.conf , /etc/ld.so.conf.d/* and $LD_LIBRARY_PATH .

+4
source

All Articles