I have installed FFMPEG on Amazon EC2 Linux AMI using this script now I am trying to install FFMPEG-PHP and after ./configure
it gives me this error on make
command
# make
/bin/sh /opt/ffmpeg-php-0.6.0/libtool --mode=compile cc -I. -I/opt/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/opt/ffmpeg-php-0.6.0/include -I/opt/ffmpeg-php-0.6.0/main -I/opt/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /opt/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo
libtool: compile: cc -I. -I/opt/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/opt/ffmpeg-php-0.6.0/include -I/opt/ffmpeg-php-0.6.0/main -I/opt/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include/ffmpeg -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /opt/ffmpeg-php-0.6.0/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o
In file included from /opt/ffmpeg-php-0.6.0/ffmpeg-php.c:42:0:
/usr/local/include/ffmpeg/avcodec.h:43:21: fatal error: version.h: No such file or directory
#include "version.h"
I have searched this a lot but couldn't manage to do it, Amazon support officer asked me to use CENTOS AMI instead of Linux AMI but I have everything hosted there, so I will appreciate if someone can help me with this.
Thank you,
Hamza