Autarchy of the Private Cave

Tiny bits of bioinformatics, [web-]programming etc

    • Archives

    • Recent comments

    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.

    Share

    8 Responses to “libmp3lame.so.0 (slackware, lame-3.97)”

    1. quinn Says:

      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

    2. quinn Says:

      actually, that fixed it. I was reading it incorrectly =/, i had it in usr/local/lib not usr/lib

    3. Bogdan Says:

      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.

    4. Quinn Says:

      yeah.. i guess it would make sense that a shared object wouldn’t be in a ‘local’ folder. thanks for your help, though

    5. Rahul Says:

      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

    6. Bogdan Says:

      Rahul,

      you need sufficient privileges to run that fix from the post. Try using sudo and/or su, or just login as root.

    7. TheAnomaly Says:

      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.

    8. kk Says:

      this worked for me, thanks much!

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>