When attempting to run a program I just compiled successfully, I get the following error:
./src/sensors/laser_scan_producer: error while loading shared libraries: liblcm.so.1: cannot open shared object file: No such file or directory
ls /usr/local/lib/liblcm*
yields
/usr/local/lib/liblcm.la
/usr/local/lib/liblcm.so
/usr/local/lib/liblcm.so.1
/usr/local/lib/liblcm.so.1.2.0
I have executed sudo ldconfig
several times and added /usr/local/lib to LD_LIBRARY_PATH for the sake of redundancy.
This exhausts the list of answers I've seen whilst grepping around stackOverflow.
Anyone spot the problem?
ldconfig
uses the file/etc/ld.so.conf
. You can add/usr/local/lib
to that file, re-runldconfig
and try again. – Some programmer dude