caffe icon indicating copy to clipboard operation
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

Open helxsz opened this issue 7 years ago • 4 comments

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

helxsz avatar May 26 '17 01:05 helxsz

I met the same error.

yukang2017 avatar Oct 11 '17 16:10 yukang2017

I meet the same error, how do you solve this? thanks

fanglw avatar Jan 24 '18 23:01 fanglw

I solved this problem by editing the CMakeCache.txt file, which contains the path definitions.

cagcoach avatar Jun 13 '18 09:06 cagcoach

I encountered similar situation, however, the problem is with liblapack.so'

PaulZhangIsing avatar Nov 20 '19 09:11 PaulZhangIsing