libmp3lame.so.0 (slackware, lame-3.97)
30th June 2007
Update: if you were looking for a downloadable libmp3lame.so.0, then go here or here.
Today I compiled ffmpeg with –enable-libmp3lame. Of course, first I downloaded, compiled and installed lame (libmp3lame) itself. However, after doing make install for ffmpeg, and then running ffmpeg produced an error:
ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory
I looked for libmp3lame.so and found one in /usr/local/lib (evidently, ffmpeg couldn’t see it there; ffmpeg was searching for libmp3lame.so.0 in /usr/lib/, not in /usr/local/lib/). It was clear that /usr/local/lib/libmp3lame.so is a symlink to /usr/local/lib/libmp3lame.so.0.0.0. So all I had to do was making one more symlink in /usr/lib/, pointing at /usr/local/lib/libmp3lame.so.0.0.0:
ln -s /usr/local/lib/libmp3lame.so.0.0.0 /usr/lib/libmp3lame.so.0
After this, ffmpeg ran without any problems.
September 18th, 2007 at 23:33
In my /usr/local/lib/ directory I already have a symlink called libmp3lame.so.0, but its still giving that error.
Do you have any thoughts on this?
the command i’m running looks like this
ffmpeg -i Window2.mpg -ar 22050 -ab 56 -aspect 4:3 -b 200 -r 12 -f flv -s 320×240 -acodec mp3 -ac 1 output3.flv
September 19th, 2007 at 0:44
actually, that fixed it. I was reading it incorrectly =/, i had it in usr/local/lib not usr/lib
September 19th, 2007 at 11:17
I see, this is really not quite easy to spot in the text. I’m modifying wording slightly, and adding bold text to make the correct action required easier to spot.
September 19th, 2007 at 17:11
yeah.. i guess it would make sense that a shared object wouldn’t be in a ‘local’ folder. thanks for your help, though
June 16th, 2008 at 17:07
I am getting the same error and when i try to run this command “ln -s /usr/local/lib/libmp3lame.so.0.0.0 /usr/lib/libmp3lame.so.0″ I am getting permission denied,
and one more think I have also try ffmpeg without lame and its working fine. but not creating mp3 files what should do to make it work…
thanks in advance
Rahul
June 16th, 2008 at 19:58
Rahul,
you need sufficient privileges to run that fix from the post. Try using sudo and/or su, or just login as root.
August 8th, 2008 at 3:49
This truly saved me large amounts of pain. Thank you very much for posting your solution. I’d still be thrashing at this same problem if you hadn’t given us that perfect solution.
Thanks again.
October 1st, 2008 at 16:37
this worked for me, thanks much!