Difference between revisions of "Troubleshooting:cannot open shared object file: No such file or directory"

From MythTV Official Wiki
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
/usr/local/bin/mythbackend: error while loading shared libraries:
 
/usr/local/bin/mythbackend: error while loading shared libraries:
libmythupnp-0.19.so.0: cannot open shared object file: No such file or directory
+
libmyth-0.20.so.0.20.0: cannot open shared object file: No such file or directory
 
</pre>
 
</pre>
  
 
after updating myth, then you probably need to do the following:
 
after updating myth, then you probably need to do the following:
 
+
<pre>sudo locate -u
<pre>sudo /sbin/ldconfig</pre>
+
locate libmyth-0.20.so.0.20.0
 +
</pre>
 +
That will return something like
 +
<pre>
 +
/home/mythtv/compile/svn/mythtv/libs/libmyth/libmyth-0.20.so.0.20.0
 +
/usr/local/lib/libmyth-0.20.so.0.20.0
 +
</pre>
 +
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/ld.so.conf. For me, I would now execute as root
 +
<pre>echo "/usr/local/lib" >> /etc/ld.so.conf
 +
/sbin/ldconfig</pre>
  
 
If that doesn't work try <tt>make distclean</tt>, then <tt>configure</tt>, then <tt>make</tt> and <tt>make install</tt>.
 
If that doesn't work try <tt>make distclean</tt>, then <tt>configure</tt>, then <tt>make</tt> and <tt>make install</tt>.
Line 20: Line 29:
 
</pre>
 
</pre>
  
Then go through the usual build process (<tt>configure && qmake mythtv.pro && make && make install</tt>).
+
Then go through the usual build process (<tt>configure && make && make install</tt>).
  
 
[[Category:Error messages]]
 
[[Category:Error messages]]

Latest revision as of 09:16, 3 November 2009

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:
libmyth-0.20.so.0.20.0: cannot open shared object file: No such file or directory

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

sudo locate -u
locate libmyth-0.20.so.0.20.0

That will return something like

/home/mythtv/compile/svn/mythtv/libs/libmyth/libmyth-0.20.so.0.20.0
/usr/local/lib/libmyth-0.20.so.0.20.0

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/ld.so.conf. For me, I would now execute as root

echo "/usr/local/lib" >> /etc/ld.so.conf
/sbin/ldconfig

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 http://svn.mythtv.org/svn/trunk/mythtv
svn co http://svn.mythtv.org/svn/trunk/mythplugins
svn co http://svn.mythtv.org/svn/trunk/myththemes

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