【安装】libcudart.so.8.0: cannot open shared object file

昨天在服务器上安装darknet,想跑Real-Time Object Detection,需要配置CUDA,服务器里已经安装过了,修改makefile:

GPU,cudnn,opencv设为1

nvcc=/usr/local/cuda-8.0/bin/nvcc

然后make出现了

libcudart.so.8.0: cannot open shared object file: No such file or directory

在网上找了很久发现了一个解决办法。

    sudo ldconfig /usr/local/cuda/lib64

一句话奇迹般的解决了我的问题,查了一下ldconfig作用。ldconfig通常在系统启动时运行,而当用户安装了一个新的动态链接库时,就需要手工运行这个命令。

这里写图片描述

参考:
http://blog.csdn.net/breeze5428/article/details/54412016

猜你喜欢

转载自blog.csdn.net/shangpapa3/article/details/76189674
今日推荐