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

hiredis 的应用程序出错。

 

./example-libevent: error while loading shared libraries: libhiredis.so.0.14: cannot open shared object file: No such file or directory

 

出现这个问题,需要检查  ~/.bash_profile  ,看看 LD_LIBRARY_PATH 是否存在,或者是否被注释了(我出现报错就是自己不小心注释了)。

例如,我的是这样的:

LD_LIBRARY_PATH=/usr/local/lib64:/opt/mongo-cxx-driver/lib64/:/usr/local/lib

 

你可能感兴趣的:(error while loading shared libraries: libhiredis.so.0.14: cannot open shared object file: No such file or directory)