caffe安装编译教程ubuntu16.04(cpu)教程 -凯发k8官方网
根据链接: https://blog.csdn.net/u010193446/article/details/53259294
按照上述教程出现错误:libopencv-dev安装失败,原因:缺少相应的源
解决方法: 添加相应的源
先备份相应源文件:
cd /etc/apt/
sudo cp sources.list sources.list.bak
然后添加源:
sudo gedit /etc/apt/sources.list
将下面源添加到最后一行:
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
然后更新源和更新已安装的包:
sudo apt-get update /*更新本地源*/
sudo apt-get upgrade /*将已安装软件根据最新源更新到最新*/
再根据 https://blog.csdn.net/u010193446/article/details/53259294教程来进行
在对caffe进行编译:make all 报错:
“ ./include/caffe/common.hpp:4:32: fatal error: boost/shared_ptr.hpp: no such file or directory compille....”
解决方法:sudo apt-get install --no-install-recommends libboost-all-dev,然后重新make all。
亲测ubuntu16.04版本可行!
---------------------------------------
caffe改动重新编译,请参考:https://blog.csdn.net/u010032054/article/details/53317180
总结
以上是凯发k8官方网为你收集整理的caffe安装编译教程ubuntu16.04(cpu)教程的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇:
- 下一篇: