liblmdb.so: cannot open shared object file

1,384 views
Skip to first unread message

Patrick Grossmann

unread,
Feb 9, 2015, 3:24:19 PM2/9/15
to caffe...@googlegroups.com
Dear all,

I get the following error when running  'make runtest' in the caffe root dir or ./examples/mnist/create_mnist.sh:

.build_release/test/test_all.testbin 0 --gtest_shuffle --gtest_filter="-*GPU*"
.build_release/test/test_all.testbin: error while loading shared libraries: liblmdb.so: cannot open shared object file: No such file or directory
make: *** [runtest] Error 127

I installed LMDB according to the directions on the Caffe website, and I have a file /usr/local/lib/liblmdb.so. What may I have missed in the installation process? I am installing Caffe on Linux Mint 13 Maya which is Ubuntu precise (12.04.5 LTS).

Thank you for any help.

Y Simson

unread,
Apr 28, 2016, 5:22:49 AM4/28/16
to Caffe Users
Hi Patrick. I have the exact same problem. I am trying to install caffe on an ubuntu 14.04 LTS AMI on AWS.

I installed lmdb manually. 

when I type 

where is lmdb.so 

I get the following:
liblmdb: /usr/local/lib/liblmdb.a /usr/local/lib/liblmdb.so

So I know that the file exists. However when I check the ldconfig file by typing:
ldconfig -p | grep lmdb

I get nothing. This means that  the library exist but it is not on ldconfig. Now may challenge is to add it to ldconfig. any ideas?

BR

Y Simson

Y Simson

unread,
Apr 28, 2016, 5:26:35 AM4/28/16
to Caffe Users
Bingo. Solved the problem:

Type in:
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib

This is a temporary solution. For a permanent solution follow the suggested solution in this link:

Jan

unread,
Apr 28, 2016, 6:17:48 AM4/28/16
to Caffe Users
Yes, that is the correct approach to the underlying "problem" -- that /usr/local/lib is not cached by ld. It is strange that the package manager would install it there anyway, usually it installs libraries to /usr/lib or some subfolder thereof. In Ubuntu 14.04 that is definitely the case, and in other Ubuntus probably as well...

Jan
Reply all
Reply to author
Forward
0 new messages