when i update hiredis from version 0.10.0 to version 0.10.1, recompile my code, run it, it dump following errors:
error while loading shared libraries: libhiredis.so.0.10: cannot open shared object file: No such file or directory
but the file libhiredis.so.0.10 IS in /usr/lib
I am sure this problem not appear in version 0.10.0.
My fault。
just use lddconfig, it's OK
i have the same problem, whats lddconfig?
See: http://linux.die.net/man/8/ldconfig.
It maintains a cache of available shared libraries. If you remove a library but don't rebuild the cache, your compiler may think that a library is available while it is not.
I solved this by running
sudo ldconfig
Which I believe updated some sort of lib cache and that fixed the issue.
I facing the same problem
i tried
sudo ldconfig
the command executed properly but error still exits .
rtabmap: error while loading shared libraries: librtabmap_core.so.0.11: cannot open shared object file: No such file or directory
can someone help
@shabhu18 That is an entirely different problem. Seems like your librtabmap_core.so is missing or broken.
@shabhu18
You are talking about a completely different issue than what this ticket is for but I ran into your same issue and somehow ended up here too. I've found that it's because LD_LIBRARY_PATH is undefined so here's what worked for me:
I found librtabmap_core.so.0.11 in my rtabmap build folder so I added that path using
export LD_LIBRARY_PATH=$HOME/Downloads/rtabmap/bin
or to /usr/local/lib or wherever you find librtabmap_core.so.0.11 on your machine. If you don't know where it is you can try
sudo find . -name "librtabmap_core.so.0.11"
确保你的/etc/ld.so.conf里面有 /usr/local/lib 这一行 没有的话vim编辑在尾行加上
然后 sudo ldconfig
Most helpful comment
I solved this by running
sudo ldconfigWhich I believe updated some sort of lib cache and that fixed the issue.