Troubleshooting:cannot open shared object file: No such file or directory

From MythTV Official Wiki
Jump to: navigation, search

This advice applies to those people running an SVN version of myth, not the tarball or packaged versions.

If you see this:

/usr/local/bin/mythbackend: error while loading shared libraries: cannot open shared object file: No such file or directory

after updating myth, then you probably need to do the following:

sudo locate -u

That will return something like


The first one (for me) was the path to the folder I compiled MythTV in. The 2nd line is the installed location of libmyth. I need to add the folder its in (in this case /usr/local/lib/). You need to append that to the end of /etc/ For me, I would now execute as root

echo "/usr/local/lib" >> /etc/

If that doesn't work try make distclean, then configure, then make and make install.

If that all fails, try a fresh checkout of the svn repository, after deleting or moving your current checkout:

svn co
svn co
svn co

Then go through the usual build process (configure && make && make install).