libm210.so cannot open

Bug #967940 reported by AdamOutler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
m210
Fix Released
Undecided
Unassigned

Bug Description

I installed libudev-dev
I compiled and installed libm210
I compiled and installed m210

now, upon running "m210" I get an error

adam@adam-Desktop:~/Desktop/m210-0.7$ m210 dump >notes
m210: error while loading shared libraries: libm210.so.0: cannot open shared object file: No such file or directory

I've never used this application before, and I don't know any tricks.

Revision history for this message
AdamOutler (adamoutler) wrote :

I realize that it's not finding the shared object, but I've downloaded source, "configure && make && sudo make install" on both items.. I don't know how to troubleshoot this.

libtool: install: (cd /usr/local/lib && { ln -s -f libm210.so.0.0.0 libm210.so.0 || { rm -f libm210.so.0 && ln -s libm210.so.0.0.0 libm210.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libm210.so.0.0.0 libm210.so || { rm -f libm210.so && ln -s libm210.so.0.0.0 libm210.so; }; })
libtool: install: /usr/bin/install -c .libs/libm210.lai /usr/local/lib/libm210.la
libtool: install: /usr/bin/install -c .libs/libm210.a /usr/local/lib/libm210.a
libtool: install: chmod 644 /usr/local/lib/libm210.a
libtool: install: ranlib /usr/local/lib/libm210.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

Revision history for this message
a (tuomasjjrasanen) wrote :

Yes, it seems that you are correct. The shared library is not found and that's because in many systems, /usr/local/lib is not in the search path of ld. So there are couple of possibilites, depending on your needs:

1. If you are using Ubuntu/Debian, then the best and easiest way is to add my PPA to to list of package sources of your systems. Then m210 and all of its dependencies will be installed/upgraded just like any other package from official package repositories:

( Of course, just like with any other software repository, you need to trust the provider, in this case me )

  sudo add-apt-repository ppa:tuomasjjrasanen/tjjr

Then you can install m210 simply with:

  sudo apt-get install m210

You will also get update-notifications in the normal manner.

2. Use LD_LIBRARY_PATH environment variable to add /usr/local/lib to ld's search path:

  export LD_LIBRARY_PATH=/usr/local/lib

You can add that line to your ~/.bashrc to automatically add on every new shell session.

3. Add /usr/local/lib to /etc/ld.so.conf. This has ofcourse a system-wide effect.

Btw, the next release of m210 will not depend on separate libm210, but has it bundled in to ease the compilation and installation process.

a (tuomasjjrasanen)
Changed in m210:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.