ubuntu 报错 libcublas.so.8.0

在qt程序中使用yolo时报错:

./conjugateGradientPrecond: error while loading shared libraries: libcublas.so.8.0: cannot open shared object file: No such file or directory

解决办法:
首先找到libcublas.so.8.0  这个文件在哪里,在我的系统Ubuntu16.04,文件在  /usr/local/cuda-8.0/lib64/ 目录下。
然后:

sudo gedit  /etc/ld.so.conf.d/cuda.conf

在文档里添加目录

 /usr/local/cuda-8.0/lib64/   

写完后,然后:

sudo ldconfig
``` 
记住一定要用sudo,除非你在root下。
原文地址:https://www.cnblogs.com/chay/p/10472993.html