ubuntu16.04配置caffe

前端之家收集整理的这篇文章主要介绍了ubuntu16.04配置caffe前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文记录在ubuntu上配置caffe(GPU版本)的一些问题的解决方法 @H_403_1@

问题1

//home/dyx/anaconda2/lib/libpng16.so.16:对’inflateValidate@ZLIB_1.2.9’未定义的引用,如下图:

解决方法
在Makefile.config文件末端加上这句 LINKFLAGS:=-Wl,-rpath,$(HOME)/anaconda2/lib @H_403_1@

问题2

make test的时候出现 @H_403_1@

The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
......
Headers are 1.10.1,library is 1.8.16
......

解决方法
这是因为Anaconda中安装的hdf5库是1.10.1的, 而之前通过pip intall h5py库应该就是1.8.16的, 一山不容二虎,于是把旧版本删除sudo pip uninstall h5py。发现自己在Makefile.config文件PYTHON_LIB := /usr/lib, 这是错误的,而要换成PYTHON_LIB := $(ANACONDA_HOME)/lib,然后重新编译@H_403_1@

make all -j6
make test
make runtest

问题得到解决@H_403_1@ 原文链接:https://www.f2er.com/ubuntu/350281.html

猜你在找的Ubuntu相关文章