title: Is /usr/local/lib searched for shared libraries?
body: <p>Is <code>/usr/local/lib</code> searched for shared libraries ? I have this error:</p>
  
  <pre><code>[Leo@chessman ~]$ whereis ffmpeg
  ffmpeg: /usr/local/bin/ffmpeg
  [Leo@chessman ~]$ ffmpeg
  ffmpeg: error while loading shared libraries: libavcore.so.0: cannot open shared object file: No such file or directory
  [Leo@chessman ~]$ ls /usr/local/lib/libav*
  /usr/local/lib/libavcodec.a            /usr/local/lib/libavfilter.a
  /usr/local/lib/libavcodec.so           /usr/local/lib/libavfilter.so
  /usr/local/lib/libavcodec.so.52        /usr/local/lib/libavfilter.so.1
  /usr/local/lib/libavcodec.so.52.108.0  /usr/local/lib/libavfilter.so.1.74.0
  /usr/local/lib/libavcore.a             /usr/local/lib/libavformat.a
  /usr/local/lib/libavcore.so            /usr/local/lib/libavformat.so
  /usr/local/lib/libavcore.so.0          /usr/local/lib/libavformat.so.52
  /usr/local/lib/libavcore.so.0.16.1     /usr/local/lib/libavformat.so.52.94.0
  /usr/local/lib/libavdevice.a           /usr/local/lib/libavutil.a
  /usr/local/lib/libavdevice.so          /usr/local/lib/libavutil.so
  /usr/local/lib/libavdevice.so.52       /usr/local/lib/libavutil.so.50
  /usr/local/lib/libavdevice.so.52.2.3   /usr/local/lib/libavutil.so.50.36.0
  [Leo@chessman ~]$ 
  </code></pre>