My own guide for centos that I've followed to the letter on many many encoding servers says this about libx264:
Code:
6. YASM is a modular assembler, it is required by the x264 package.
wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
tar zfvx yasm-0.7.0.tar.gz
cd yasm-0.7.0
./configure
make && make install
7. Update the links to the shared libs…again
/sbin/ldconfig
8. Compile & Install x264
a) try
wget ftp://ftp.videolan.org:21//pub/videolan/x264/snapshots/x264-snapshot-20090908-2245.tar.bz2
bzip2 -d x264-snapshot-20090908-2245.tar.bz2
tar xvf x264-snapshot-20090908-2245.tar
cd x264-snapshot-20090908-2245
./configure --enable-pthread --enable-mp4-output --enable-shared --prefix=/usr --disable-asm
make && make install
if this fails with "lgpac" probs:
cd ../gpac
make install-lib
then try again
b) if fails, try
git clone git://git.videolan.org/x264.git
cd x264
./configure --enable-pthread --enable-mp4-output --enable-shared --prefix=/usr --disable-asm
make && make install