Autarchy of the Private Cave

Tiny bits of bioinformatics, [web-]programming etc

    • Archives

    • Recent comments (slackware, lame-3.97)

    30th June 2007

    Update: if you were looking for a downloadable, 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: cannot open shared object file: No such file or directory

    I looked for and found one in /usr/local/lib (evidently, ffmpeg couldn’t see it there; ffmpeg was searching for in /usr/lib/, not in /usr/local/lib/). It was clear that /usr/local/lib/ is a symlink to /usr/local/lib/ So all I had to do was making one more symlink in /usr/lib/, pointing at /usr/local/lib/

    ln -s /usr/local/lib/ /usr/lib/

    After this, ffmpeg ran without any problems.


    8 Responses to “ (slackware, lame-3.97)”

    1. quinn Says:

      In my /usr/local/lib/ directory I already have a symlink called, 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/ /usr/lib/″ 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


    6. Bogdan Says:


      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>