Caffe安裝問題17_error while loading shared libraries

1 問題

編譯都沒有問題

make -j8
make py
make test -j8
make runtest -j8

然而在最後runtest時出現如下錯誤

error while loading shared libraries: libcudart.so.9.0: cannot open shared object file: No such file or directory
Makefile:542: recipe for target 'runtest' failed
make: *** [runtest] Error 127

2 解決

設置環境變量:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章