服务器无root权限配置caffe安装snappy时make出错

根据教程https://blog.csdn.net/jiajinrang93/article/details/80337513,安装snappy进行make时报错,cmake版本为3.5.1.请问这要怎样解决??

CMakeFiles/snappy_unittest.dir/snappy_unittest.cc.o:(.rodata._ZTIN6snappy31Snappy_ReadPastEndOfBuffer_TestE[_ZTIN6snappy31Snappy_ReadPastEndOfBuffer_TestE]+0x10): more undefined references to `typeinfo for testing::Test' follow
collect2: error: ld returned 1 exit status
CMakeFiles/snappy_unittest.dir/build.make:122: recipe for target 'snappy_unittest' failed
make[2]: *** [snappy_unittest] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/snappy_unittest.dir/all' failed
make[1]: *** [CMakeFiles/snappy_unittest.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

https://blog.csdn.net/jiajinrang93/article/details/80337513

snappy在cmake时要求cmake版本大于3.4,因此如果之前装hdf5时采用cmake降级的方法,这里没法通过,因此要再升回去