[root@ffmpeg-HEAD-b6ffe44]# PKG_CONFIG_PATH=/root/ff_git/lib/pkgconfig LDFLAGS="-L/root/ff_git/lib -L/lib64 -L/lib -L/usr/lib" CFLAGS="-I/root/ff_git/include/ -I/usr/include/" ./configure --prefix=/root/ff_git --enable-static --enable-postproc --enable-gpl --enable-avfilter --enable-libx264 --enable-libfaac --enable-libxvid --enable-libmp3lame --enable-nonfree --enable-pthreads --enable-swscale --enable-runtime-cpudetect --disable-devices --disable-encoder=aac --disable-avdevice --extra-ldflags=-static --disable-shared --extra-libs='-lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm' --disable-encoder=libgsm --disable-decoder=libgsm --disable-doc --enable-avconv gcc is unable to create an executable file. If gcc is a cross-compiler, use the --enable-cross-compile option. Only do this if you know what cross compiling means. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem. [root@ffmpeg-HEAD-b6ffe44]# tail config.log check_ld cc check_cc BEGIN /tmp/ffconf.b2FWMGBQ.c 1 int main(void){ return 0; } END /tmp/ffconf.b2FWMGBQ.c gcc -I/root/ff_git/include/ -I/usr/include/ -c -o /tmp/ffconf.9wdl0VnP.o /tmp/ffconf.b2FWMGBQ.c gcc -L/root/ff_git/lib -L/lib64 -L/lib -L/usr/lib -static -o /tmp/ffconf.AkVZB4Ak /tmp/ffconf.9wdl0VnP.o -lx264 -lfaac -lxvidcore -lmp3lame -lpthread -lm /usr/bin/ld: cannot find -lpthread collect2: ld returned 1 exit status C compiler test failed. [root@ffmpeg-HEAD-b6ffe44]# ls -al /usr/lib64/libpthread.so -rw-r--r--. 2 root root 222 Dec 6 10:03 /usr/lib64/libpthread.so