I want to use ffmpeg and libmp3lame on a stable Debian box. Alas, Debian does not support the libmp3lame package. So, I downloaded the sources for ffmpeg and the lame encoder, configured and installed them manually (on a testing machine).
But I do not want to install ffmpeg and libmp3lame on the machine for all users (also because the built is not stable). I only want to use it for a single project with a single user.
When I run ./ffmpeg/ffmpeg I get following error message:
# cd ffmpeg # ./configure --enable-libmp3lame # make # ./ffmpeg ./ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory.
So I simply tried to link the required library to the local directory:
# ln -s ../lame-3.99.5/libmp3lame/libmp3lame.so ./libmp3lame.so.0
But "./" seems to be not in the shared library search path so ffmpeg doesn't find it.
I tried following bash script:
#!/bin/bash PATH="$PATH:./" LIB_PATH="$LIB_PATH:./" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./" ./ffmpeg
But it still does not work.
I do not want to install the library as root (e.g. into /usr/lib) because I do not want to install anything without the official package manager + trusted Debian package sources.
So is there any way to tell ffmpeg to use the libmp3lame.so.0 in the "./" directory so I can use it without installing?