title: How to load correct libavcodec.so shared library version? (53)
body: <p>I am using libavcodec and libavformat in my project but when I execute a binary which was built on another machine, I get the following error:</p>
  
  <pre><code>error while loading shared libraries: libavcodec.so.53: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>I installed ffmpeg with libav and trying the following commands:</p>
  
  <pre><code>sudo apt-get install ffmpeg libavcodec-dev libavformat-dev
  sudo apt-get install ffmpeg libavcodec-extra-53
  sudo apt-get install libav-tools
  </code></pre>
  
  <p>The error doesnt show up when I build the binary on the same machine, but it would be much faster to compile on a second machine. </p>
  
  <p>UDPATE: I also ran <code>sudo apt-get install update</code> and <code>sudo apt-get install pkg-config</code> without any change in the output. (OS = 12.04)</p>