Error while loading shared libraries: No such file or directory even after using LD_LIBRARY_PATH and changing $PATH

Tarak Shah

I'm new to Linux environment. I'm trying to run my C++ files on Codelite and its giving me error which just won't go. I have a DLL folder of my Dahua SDK. It contains shared .so libraries. I'm getting this error since last 2 days and can't run my project!

./Dahuatest1: error while loading shared libraries: libdhnetsdk.so: cannot open shared object file: No such file or directory

I already tried:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/tarak/Documents/General_NetSDK_Eng_Linux64_IS_V3.48.1.R.170623/NetSDK_Eng_Bin/Demo_Src/DLL

export LD_LIBRARY_PATH

ldconfig

which also includes my DLL folder. But still get the same error.

I also tried to change my path to my folder in ~/.bashrc:

export $PATH=$PATH:/home/tarak/Documents/General_NetSDK_Eng_Linux64_IS_V3.48.1.R.170623/NetSDK_Eng_Bin/Demo_Src/DLL

this too failed!

What should I do to get the output??

In codelite I've set Linker search path as my DLL folder. And compiler 'Include Path' also as my DLL folder

Here's a screenshot of my folder: Project file

DLL folder

Phantom Lord

Try

export LD_LIBRARY_PATH=/home/tarak/Documents/General_NetSDK_Eng_Linux64_IS_V3.48.1.R.170623/NetSDK_Eng_Bin/Demo_Src/DLL && ./Dahuatest1

As well, try moving (or better symlinking) you *.so files to a directory where the system automatically looks shared libraries for (e.g. /usr/local/lib)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Linux

error while loading shared libraries: libgmock.so: cannot open shared object file: No such file or directory

From Java

error while loading shared libraries: libboost_system.so.1.45.0: cannot open shared object file: No such file or directory

From Java

Linux error while loading shared libraries: cannot open shared object file: No such file or directory

From Java

Error while loading shared libraries; cannot open shared object file: No such file or directory

From Dev

error while loading shared libraries: libnsd.so: cannot open shared object file: No such file or directory

From Dev

svn: error while loading shared libraries: libserf-1.so.1: cannot open shared object file: No such file or directory

From Dev

Program error: ./program: error while loading shared libraries: lib<xxx>.so: cannot open shared object file: No such file or directory

From Dev

Error while loading shared libraries, cannot open shared object file: No such file or directory (hiredis)

From Dev

Linux: error while loading shared libraries: libQtSvg.so.4: cannot open shared object file: No such file or directory

From Dev

sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

From Dev

skype: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

From Dev

error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory

From Dev

'mount: error while loading shared libraries: libudev.so.0 : no such file or directory' error while booting

From Dev

'mount: error while loading shared libraries: libudev.so.0 : no such file or directory'

From Dev

Error while loading shared libraries: libogg.so.0: cannot open shared object file: No such file or directory

From Dev

error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory on Ubuntu 19.10

From Dev

R and external C library " cannot open shared object file" while LD_LIBRARY_PATH is set

From Dev

Why do I get 'error while loading shared libraries: libssl.so.6 cannot open shared object file' even after I run ldconfig?

From Dev

Error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

From Dev

error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such file or directory

From Dev

error while loading shared libraries: libQt5Multimedia.so.5: cannot open shared object file: No such file or directory

From Dev

Getting error with mongod (2.8) "error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory"

From Dev

tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

From Dev

./mongod: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

From Dev

Understanding LD_LIBRARY_PATH and missing shared libraries (for Mujoco)

From Dev

./a.out: error while loading shared libraries: libgsl.so.23: cannot open shared object file: No such file or directory

From Dev

Error while loading shared libraries: cannot open shared object file: No such file or directory

From Dev

cdo: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

From Dev

"error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory" when running TRTorch sample

Related Related

  1. 1

    error while loading shared libraries: libgmock.so: cannot open shared object file: No such file or directory

  2. 2

    error while loading shared libraries: libboost_system.so.1.45.0: cannot open shared object file: No such file or directory

  3. 3

    Linux error while loading shared libraries: cannot open shared object file: No such file or directory

  4. 4

    Error while loading shared libraries; cannot open shared object file: No such file or directory

  5. 5

    error while loading shared libraries: libnsd.so: cannot open shared object file: No such file or directory

  6. 6

    svn: error while loading shared libraries: libserf-1.so.1: cannot open shared object file: No such file or directory

  7. 7

    Program error: ./program: error while loading shared libraries: lib<xxx>.so: cannot open shared object file: No such file or directory

  8. 8

    Error while loading shared libraries, cannot open shared object file: No such file or directory (hiredis)

  9. 9

    Linux: error while loading shared libraries: libQtSvg.so.4: cannot open shared object file: No such file or directory

  10. 10

    sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

  11. 11

    skype: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

  12. 12

    error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory

  13. 13

    'mount: error while loading shared libraries: libudev.so.0 : no such file or directory' error while booting

  14. 14

    'mount: error while loading shared libraries: libudev.so.0 : no such file or directory'

  15. 15

    Error while loading shared libraries: libogg.so.0: cannot open shared object file: No such file or directory

  16. 16

    error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory on Ubuntu 19.10

  17. 17

    R and external C library " cannot open shared object file" while LD_LIBRARY_PATH is set

  18. 18

    Why do I get 'error while loading shared libraries: libssl.so.6 cannot open shared object file' even after I run ldconfig?

  19. 19

    Error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

  20. 20

    error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such file or directory

  21. 21

    error while loading shared libraries: libQt5Multimedia.so.5: cannot open shared object file: No such file or directory

  22. 22

    Getting error with mongod (2.8) "error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory"

  23. 23

    tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

  24. 24

    ./mongod: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

  25. 25

    Understanding LD_LIBRARY_PATH and missing shared libraries (for Mujoco)

  26. 26

    ./a.out: error while loading shared libraries: libgsl.so.23: cannot open shared object file: No such file or directory

  27. 27

    Error while loading shared libraries: cannot open shared object file: No such file or directory

  28. 28

    cdo: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

  29. 29

    "error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory" when running TRTorch sample

HotTag

Archive