编译caffe报错:make: *** [runtest] 错误 134

make runtest报错:'[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.SolverParameter: 1:113: Message type "caffe.SolverParameter" has no field named "layer_wise_reduce".'

原因:未安装protobuf或者protobuf版本太低。我是因为版本太低。

解决:先卸载原protobuf,进入原安装目录然后sudo make clean后删除安装文件即可,之后官网下载最新protobuf,地址:https://github.com/google/protobuf/

           解压,然后进入cd protobuf-master

./autogen.sh
./configure
make
make install

若./autogen.sh报错:./autogen.sh: 48: autoreconf: not found

参看博主博文解决:http://blog.csdn.net/xunan003/article/details/75175078

如果安装更新之后还是报错,那么还有一种原因,就是假如你正在添加原caffe没有的东西,而重新编译caffe。改换了别处的caffe.proto文件,那么就去检查你的caffe.proto文件有无错误,最好与原来的做一个对比查找错误。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值