![ffmpeg: 공유 라이브러리를 로드하는 중 오류 발생: libtheoraenc.so.1](https://linux55.com/image/21623/ffmpeg%3A%20%EA%B3%B5%EC%9C%A0%20%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC%EB%A5%BC%20%EB%A1%9C%EB%93%9C%ED%95%98%EB%8A%94%20%EC%A4%91%20%EC%98%A4%EB%A5%98%20%EB%B0%9C%EC%83%9D%3A%20libtheoraenc.so.1.png)
ffmpeg를 실행하려고 하면 다음 오류가 발생합니다.
ffmpeg: error while loading shared libraries: libtheoraenc.so.1: cannot open shared object file: No such file or directory
출력은 다음과 같습니다 ls \usr\lib -l | grep libtheora
.
-rw-r--r-- 1 루트 루트 419238 2010년 1월 5일 libtheora.a -rw-r--r-- 1 루트 루트 935 2010년 1월 5일 libtheora.la lrwxrwxrwx 1 루트 루트 2010년 1월 5일 19일 libtheora.so -> libtheora.so.0.3.10 -rw-r--r-- 1 루트 루트 145636 2010년 1월 5일 libtheoradec.a -rw-r--r-- 1 루트 루트 948 2010년 1월 5일 libtheoradec.la lrwxrwxrwx 1 루트 루트 2010년 1월 5일 21 libtheoradec.so -> libtheoradec.so.1.1.4 -rw-r--r-- 1 루트 루트 334696 2010년 1월 5일 libtheoraenc.a -rw-r--r-- 1 루트 루트 954 2010년 1월 5일 libtheoraenc.la lrwxrwxrwx 1 루트 루트 2010년 1월 5일 21 libtheoraenc.so -> libtheoraenc.so.1.1.2
문제를 해결하려면 어떻게 해야 합니까?
편집: 라인에서:
libtheoraenc.so -> libtheoraenc.so.1.1.2
/usr/lib에서 libtheoraenc.so.1.1.2를 찾을 수 없습니다(libtheora 및 libtheora-dev 패키지가 설치되어 있음).
출력은 locate libtheoraenc.so.1.1.2
다음과 같습니다
/usr/lib/libtheoraenc.so.1
/usr/lib/libtheoraenc.so.1.1.2
하지만 이 파일을 /usr/lib에서 찾을 수 없습니다!
답변1
libtheora0을 다시 설치하는 것이 좋습니다.
sudo apt-get install --reinstall libtheora0
원래 질문에는 Unixey가 아닌 백슬래시가 있으므로 명시적으로 라이브러리를 찾아보겠습니다.
ls -l /usr/lib/libtheoraenc*