Bootstrap

YOLOX部署遇到的bug

1、./yolox: error while loading shared libraries: libnvrtc.so.10.2: cannot open shared object file: No such file or directory

解决方法:

查看yolox编译工程加载依赖库是否能找到:cd build && ldd yolox

然后报上述错误,该动态库文件无法找到,由于libnvrtc属于cuda编译库,因此进入cuda安装库进行查找,

cd /usr/local/cuda
find ./ -name libnvrtc.so.10.2

找到该路径:

然后将该路径加载到环境变量中,

export LD_LIBRARY_PATH=/usr/local/cuda/targets/x86_64-linux/lib:$LD_LIBARARY_PATH

 source ~/.bashrc

再次加载yolox,查找还有没有丢失的库文件:

ldd yolox

;