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). 

0
3 comments

What debugger is in use? Is it GDB or LLDB?

0
Avatar
Permanently deleted user

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

0

No problem! I'm glad you figured this out.

0

Please sign in to leave a comment.