error while loading shared libraries: libcudart.so.6.5: cannot open shared object file: No such file or directory


CAFFE 실행 중 위와 같은 오류가 발생했다.

libcudart.so.6.5 라이브러리를 찾지 못해 발생한 오류로 아래와 같이 환경 변수를 추가하면 해결된다.


export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64


만약 위 환경 변수를 영구적으로 사용하고 싶으면

~/.profile 파일의 마지막 줄에 위의 명령어를 추가한 후 터미널에서 . ~/.profile 을 실행하면 추가된다.


환경 변수의 확인은

echo $LD_LIBRARY_PATH

로 할 수 있다.

+ Recent posts