Building HandBrake for CentOS/RHEL5

Stemming from my need to have my virtualization system do its fair share of work with regards to encoding digital media arose my need to run HandBrake on a RHEL5 system. These instructions were tested and validated on both a CentOS5.4 installation on i386 and x86_64 architectures and are a gratuitous pillaging of (this) post.

Install the Extra Packages for Enterprise Linux (EPEL) RPM Repository

rpm -Uvh

Download HandBrake Source code


Untar it

tar zxvf HandBrake-0.9.3.tar.gz

Install packages necessary to build the binary:

yum install libtool jam rpmdevtools bzip2-devel zlib-devel subversion git \
yasm-devel yasm intltool gcc-c++ make

Build it

cd HandBrake-0.9.3

The build process will begin and download more source code and libraries from the web. When complete, you should have a HandBrakeCLI binary in your source code directory. I’ve provided the binaries below for those of us who dislike compiling :)

  • RHEL 5 i386 binary (here) – sha256sum – 18d79143ba85683af060398b5bc88d343c812369a6d710da24ae2c8064eab838
  • RHEL 5 x86_64 binary (here) – sha256sum – e39e995f505b9edbe755ba7475a2d01e4d41e6967045c7b5cdcc8047283eb3e5

Notes: You will need to install autoconf higher version

tar xjf autoconf-2.61.tar.bz2
cd autoconf-2.61
sudo make install