标签:描述 buffers buffer tar caff clu 创建 etc tor
环境:
ubuntu16.04 cuda8.0 cudnn5.0
已安装过caffe1.0 tensorflow1.2
教程 https://github.com/weiliu89/caffe/tree/ssd
$CAFFE_ROOT
git clone https://github.com/weiliu89/caffe.git
cd caffe
git checkout ssd
# Modify Makefile.config according to your Caffe installation.
cp Makefile.config.example Makefile.config
make -j8
# Make sure to include $CAFFE_ROOT/python to your PYTHONPATH.
make py
make test -j8
# (Optional)
make runtest -j8
问题:此处参考了别的教程使用了make all -j8出现问题(一定看官方教程)问题描述:
This file was generated by an older version of protoc which is incompatible with your Protocol Buffer headers. Please regenerate this file with a newer version of protoc.
原因是系统中装tensorflow时装有了多个版本的protobuf,造成版本冲突。将protobuf卸载后,按照此教程重新安装https://www.cnblogs.com/luoxn28/p/5303517.html
tar -xvf protobuf cd protobuf ./configure --prefix=/usr/local/protobuf make make check make install
按照上边的还有问题,加上这部分
去https://developers.google.com/protocol-buffers/docs/downloads下载*.tar.tz压缩包,解压, 命令行进入解压后目录,依次执行如下 ./configure make 创建文件 /etc/ld.so.conf.d/libprotobuf.conf 写入内容:/usr/local/lib 输入命令 sudo ldconfig 注:protobuf的默认安装路径是/usr/local/lib,而/usr/local/lib 不在Ubuntu体系默认的 LD_LIBRARY_PATH 里,后面install找不到该lib 然后sudo make install 安装后,输入protoc --version 验证是否安装成功
as
标签:描述 buffers buffer tar caff clu 创建 etc tor
原文地址:https://www.cnblogs.com/vactor/p/9803134.html