Mar 25, 2008

So true!

On #MPlayer, a guy wanted to play 3GP files, he is using debian..
So he installed amr codecs from source.
As u may know it installs in /usr/local, so we said to him to (re)compile MPlayer.
All done, but when he tried to play any kind of file he gets:
./mplayer: error while loading shared libraries: libamrnb.so.3: cannot open shared object file: No such file or directory
OK.. we said him to edit ld.so.conf and if /usr/local/lib isn't there.. add it.
After he added it the same problem...
I suggested to run MPlyer like this: LD_LIBRARY_PATH=/usr/lib:/usr/local/lib ./mplayer file
It works...
Thoughts:
<iive> portwolf: debian/ubuntu are kind of apple products. If you use apt-get everything is just fine.
<iive> but if you try to step out of the known path you are getting in a world of pain.

That's true!

2 comments:

  1. thank you for this post - there is so much mis-information out there w/r/t ffmpeg & the amr libraries.

    dead on - fixed my problem.

    ReplyDelete
  2. thanks for post,

    do you create symbolic link into directory /usr/lib
    # ln -s /usr/local/lib/.so /usr/lib/.so
    # ldconfig

    i think that can help you

    ReplyDelete

Mocăniţa CFF Vişeu de Sus