rscada / libmbus

Meter-bus library and utility programs
http://www.rscada.se/libmbus
BSD 3-Clause "New" or "Revised" License
217 stars 137 forks source link

Raspberry Pi - libmbus.so.0 #78

Closed stenebo closed 9 years ago

stenebo commented 9 years ago

Hello, I've compiled libmbus in raspbian with kernel 3.12.28. Now I get the following error when I run mbus-tcp-scan or mbus-serial-scan:

mbus-tcp-scan: error while loading shared libraries: libmbus.so.0: cannot open shared object file: No such file or directory

I've searched the file and it exist in /usr/local/lib/libmbus.so.0 So I added it to PATH with: export PATH=$PATH:/usr/local/lib But still same error, any ideas? /Per

stenebo commented 9 years ago

I've found a workaround: Make a soft link between current position and expected position:

sudo ln -s /usr/local/lib/libmbus.so.0 /usr/lib/libmbus.so.0

I guess the root problem is in the build configuration files that build the file in one dir but search another during execution.

kkro commented 8 months ago

Running still fine on Debian 12 64-bit but this commet is so important.

And:

_autoconf ./configure make__

is not enough, you need this:

libtoolize --force aclocal autoheader automake --force-missing --add-missing autoconf ./configure make