本文主要是介绍Caffe安装问题13_libcudnn.so fileformat not recognized treating as linker script,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1 问题
/usr/bin/ld:/usr/local/cuda/lib64/libcudnn.so: file format not recognized; treating as linker script
/usr/bin/ld:/usr/local/cuda/lib64/libcudnn.so:1: syntax error
collect2: error: ld returned 1 exit status
Makefile:582: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
2 解决方法
sudo rm -rf libcudnn.so libcudnn.so.7sudo ln -s libcudnn.so.7.0.2 libcudnn.so.7
sudo ln -s libcudnn.so.7 libcudnn.so
这篇关于Caffe安装问题13_libcudnn.so fileformat not recognized treating as linker script的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!