Take the 2-minute tour ×
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: libtheoraenc.so.1: 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 libtheora.la
lrwxrwxrwx  1 root   root        19 Jan  5  2010 libtheora.so -> libtheora.so.0.3.10
-rw-r--r--  1 root   root    145636 Jan  5  2010 libtheoradec.a
-rw-r--r--  1 root   root       948 Jan  5  2010 libtheoradec.la
lrwxrwxrwx  1 root   root        21 Jan  5  2010 libtheoradec.so -> libtheoradec.so.1.1.4
-rw-r--r--  1 root   root    334696 Jan  5  2010 libtheoraenc.a
-rw-r--r--  1 root   root       954 Jan  5  2010 libtheoraenc.la
lrwxrwxrwx  1 root   root        21 Jan  5  2010 libtheoraenc.so -> libtheoraenc.so.1.1.2

What should I do to solve the problem?

Edit: in line:

libtheoraenc.so -> libtheoraenc.so.1.1.2

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

output of locate libtheoraenc.so.1.1.2 is:

/usr/lib/libtheoraenc.so.1

/usr/lib/libtheoraenc.so.1.1.2

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

share|improve this question
2  
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

 
discard

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.