Error building caffe: cannot find -lsnappy

1,117 views
Skip to first unread message

Jonathan Laserson

unread,
Aug 4, 2015, 5:08:53 AM8/4/15
to Caffe Users
Still encountering problems building caffe. Any ideas?

@:~/caffe$ make all
LD -o .build_release/lib/libcaffe.so
/usr/bin/ld: cannot find -lsnappy
collect2: error: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe.so] Error 1


There was someone else who encountered this problem in the mailing list, but no one answered him, hopefully I'll have better luck.

Jonathan Laserson

unread,
Aug 4, 2015, 9:45:59 AM8/4/15
to Caffe Users
Might have missed this line in the installation instructions.

sudo apt-get install libhdf5-serial-dev libleveldb-dev libsnappy-dev liblmdb-dev

Also remember to clean the .build directory before running 'make all' again.

Jiaming Hong

unread,
Jan 26, 2016, 3:23:20 AM1/26/16
to Caffe Users
Thank you!
Reply all
Reply to author
Forward
0 new messages