ld_library_path snippets

Setting LD_LIBRARY_PATH when using the Gnu Project Debugger (gdb)

Tagged ld_library_path, gdb  Languages bash

If you get this:

ImportError: lpthread.so: cannot open shared object file: No such file or directory

Do this:

set environment LD_LIBRARY_PATH=directory where lpthread.so is

The reason for this problem is that gdb doesn't use the same settings as your session so specifying LD_LIBRARY_PATH in your bash session won't work.