ubuntu---yolo报错error while loading shared libraries: libcudart.so.10.0

jupiter@jupiter-Default-string:~/darknet$ ./darknet detector demo ./cfg/coco.data ./cfg/yolov2.cfg ./yolov2.weights test50.mp4 -i 0 -thresh 0.25
./darknet: error while loading shared libraries: libcudart.so.10.0: cannot open shared object file: No such file or directory

error while loading shared libraries: libcudart.so.10.0
将cuda的lib中的链接库复制到path目录下:

sudo cp /usr/local/cuda-10.0/lib64/libcudart.so.10.0 /usr/local/lib/libcudart.so.10.0 && sudo ldconfig
sudo cp /usr/local/cuda-10.0/lib64/libcublas.so.10.0 /usr/local/lib/libcublas.so.10.0 && sudo ldconfig
sudo cp /usr/local/cuda-10.0/lib64/libcurand.so.10.0 /usr/local/lib/libcurand.so.10.0 && sudo ldconfig

原文链接:

 

sudo cp /usr/local/cuda-10.0/lib64/   /usr/local/lib/    && sudo ldconfig


libcudart.so.10.0

sudo cp /usr/local/cuda-10.0/lib64/libcudart.so.10.0 /usr/local/lib/libcudart.so.10.0 && sudo ldconfig


libcublas.so.10.0

sudo cp /usr/local/cuda-10.0/lib64/libcublas.so.10.0 /usr/local/lib/libcublas.so.10.0 && sudo ldconfig


libcurand.so.10.0

sudo cp /usr/local/cuda-10.0/lib64/libcurand.so.10.0   /usr/local/lib/libcurand.so.10.0    && sudo ldconfig


libcudnn.so.7

sudo cp /usr/local/cuda-10.0/lib64/libcudnn.so.7   /usr/local/lib/libcudnn.so.7    && sudo ldconfig

 

posted on 2020-02-28 15:42  WP的烂笔头  阅读(2642)  评论(0编辑  收藏  举报