How to install ffmpeg


Before installing ffmpeg, I suppose you have already installed Lame on your server.

tar -xjvf ffmpeg-export-snapshot.tar.bz2 ;
cd ffmpeg-export-2008-07-18 ;
./configure --enable-libmp3lame --enable-shared
make install

Test by running 'ffmpeg' from shell



Ok this is why I have provided the ffmpeg installation here.

configure Error:

While running command "./configure --enable-libmp3lame --enable-shared", if you get following error

Unable to create and execute files in /tmp. Set the TMPDIR environment
variable to another directory


Open the configure file for ffmpeg and comment the following lines

# set temporary file name
#if test ! -z "$TMPDIR" ; then
#elif test ! -z "$TEMPDIR" ; then

save/exit and rerun

./configure --enable-libmp3lame --enable-shared


Error # 2

After installing ffmpeg, run ffmpeg and if you get following error.

ffmpeg: error while loading shared libraries:
cannot open shared object file: No such file or directory.


run following commands one by one

(if you are on login via wheel user, you must login via "su -" not only "su"

echo "/usr/local/lib" >> /etc/
echo "/usr/lib" >> /etc/

Now check ffmpeg by running



Error # 3

Or some time while running finally ffmpeg you get error like this

ffmpeg: error while loading shared libraries: /usr/lib/[/color]
cannot r[color=blue]


chcon -t texrel_shlib_t /usr/lib/

Keep doing the chcon on each new library until you get 'em all labeled.

  • Email, SSL
  • 18 Users Found This Useful
Was this answer helpful?

Related Articles

How to install chkrootkit

cd /usr/src wget tar zxvf...

How to install Ioncube

cd /usr/local/ wget tar -xvzf...

How to install Zend Optimizer

How to Install Zend Optimizer/Encoder on cPanel/WHM Zend Optimiser is a PHP addon which offers...

How to install ImageMagic

cd /usr/local/src wget (NOTE:...

Protecting Yourself Against Viruses & Data Loss

It is vital to ensure your computer is protected from viruses and trojans. As well as installing...

Powered by WHMCompleteSolution