caffe
caffe copied to clipboard
make[2]: *** No rule to make target '/usr/lib/libsnappy.so', needed by 'lib/libcaffe.so.1.0.0-rc3'. in ubuntu 16.04
Issue summary
following the guide here, but compiling caffe in ubuntu 16.04 produces such error
[ 79%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/signal_handler.cpp.o make[2]: *** No rule to make target '/usr/lib/libsnappy.so', needed by 'lib/libcaffe.so.1.0.0-rc3'. Stop. make[2]: *** Waiting for unfinished jobs.... [ 79%] Building CXX object src/caffe/CMakeFiles/caffe.dir/util/upgrade_proto.cpp.o CMakeFiles/Makefile2:235: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
Steps to reproduce
cmake .. make -j8
when cmake ..
the output shows
-- Found Snappy (include: /usr/include, library: /usr/lib/libsnappy.so)
however in reality
ldconfig -p | grep libsnappy.so
shows
libsnappy.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libsnappy.so.1
libsnappy.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libsnappy.so
Your system configuration
Operating system: ubuntu 16.04 Compiler: /usr/bin/c++ CUDA version (if applicable): 8.0 CUDNN version (if applicable): 5.1 BLAS: yes Python or MATLAB version (for pycaffe and matcaffe respectively):
how would modify it the makefile or link /usr/lib/libsnappy.so with /usr/lib/x86_64-linux-gnu/libsnappy.so
I met the same error.
I meet the same error, how do you solve this? thanks
I solved this problem by editing the CMakeCache.txt
file, which contains the path definitions.
I encountered similar situation, however, the problem is with liblapack.so'