Setting LD_LIBRARY_PATH when using the Gnu Project Debugger (gdb)
Shell Script (Bash) posted 8 months ago by christian
If you get this:
1 ImportError: lpthread.so: cannot open shared object file: No such file or directory
Do this:
1 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.
Tagged ld_library_path, gdb