LD_LIBRARY_PATH suddenly doesn't work
Answered
Suddenly, without any action I remember I made, I can't debug my executable.
There was an environment variable 'LD_LIBRARY_PATH' in the executable environment variables that worked.
Now I get an error: /path/to/bin/app.bin: error while loading shared libraries: libboost_system.so.1.62.0: cannot open shared object file: No such file or directory
When I check LD_LIBRARY_PATH. the lib is in there.
Is there any way to fix / reset it?
I'm using last official version (2016.3.2).
It also didn't work on last EAP version.
Thanks
-------------------------- update
It works and run for 'shift + F10' (run mode).
But doesn't work for 'shift + F9' (debug mode).
Please sign in to leave a comment.
What debugger is in use? Is it GDB or LLDB?
GDB.
OK, of course it was my bad;
When I tried to run a 'capped' process (with capabilities) I 'setcap's to clion, bash and gdb.
I forgot to remove the capabilities from bash.
It's working now.
Thanks
No problem! I'm glad you figured this out.