zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    基于TensorRT的BERT实时自然语言理解(下)
    基于TensorRT的BERT实时自然语言理解(上)
    lsof
    kata-runtime spec
    kata 虚拟机
    json + jq命令
    kata-runtime run mycontainer
    kata-runtime来运行容器
    docker + docker-runc
    kata container在aarch64上成功运行
  • 原文地址:https://www.cnblogs.com/carle-09/p/12377492.html
Copyright © 2011-2022 走看看