Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

When I want to run ffmpeg I get the following error:

ffmpeg: error while loading shared libraries: cannot open shared object file: No such file or directory

This is output of ls \usr\lib -l | grep libtheora:

-rw-r--r--  1 root   root    419238 Jan  5  2010 libtheora.a
-rw-r--r--  1 root   root       935 Jan  5  2010
lrwxrwxrwx  1 root   root        19 Jan  5  2010 ->
-rw-r--r--  1 root   root    145636 Jan  5  2010 libtheoradec.a
-rw-r--r--  1 root   root       948 Jan  5  2010
lrwxrwxrwx  1 root   root        21 Jan  5  2010 ->
-rw-r--r--  1 root   root    334696 Jan  5  2010 libtheoraenc.a
-rw-r--r--  1 root   root       954 Jan  5  2010
lrwxrwxrwx  1 root   root        21 Jan  5  2010 ->

What should I do to solve the problem?

Edit: in line: ->

I can't find in /usr/lib(packages libtheora and libtheora-dev are installed)

output of locate is:



But I can't find this files in /usr/lib!

share|improve this question
Did you install ffmpeg manually or using your distribution's package manager? Did you make sure that libtheora is the latest version? –  Lars Kotthoff Mar 12 '12 at 18:21
I installed ffmpeg with apt-get. How do I know that libtheora is the latest version? If it's not, How can I install the latest –  hknik Mar 12 '12 at 18:25
Run apt-get update and apt-get upgrade for an upgrade of all installed packages to the current version. –  Lars Kotthoff Mar 12 '12 at 18:27
Yes. It's the last version –  hknik Mar 12 '12 at 18:40
Looks like a bug in the package then. Try reporting the bug/looking for solution on your distribution's website. –  Lars Kotthoff Mar 12 '12 at 18:42

1 Answer 1

up vote 2 down vote accepted

I think I'd recommend a reinstall of libtheora0:

sudo apt-get install --reinstall libtheora0

And since you have some non-unixey backslashes in your original question, let's be explicit about looking for the libraries:

ls -l /usr/lib/libtheoraenc*
share|improve this answer
Thank you so much! –  hknik Mar 13 '12 at 6:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.