Topic: ffmpeg-php installation error, help me!
The following is my installation log
[root@yingshi5 ~]# tar -xvjf ffmpeg-php-0.5.2.1.tbz2
ffmpeg-php-0.5.2.1/
ffmpeg-php-0.5.2.1/tests/
ffmpeg-php-0.5.2.1/tests/test_media/
ffmpeg-php-0.5.2.1/tests/test_media/robot.avi
ffmpeg-php-0.5.2.1/tests/test_media/test.avi
ffmpeg-php-0.5.2.1/tests/test_media/Ballad of the Sneak.mp3
ffmpeg-php-0.5.2.1/tests/getFramesResampled.phpt
ffmpeg-php-0.5.2.1/tests/getFrameRate.phpt
ffmpeg-php-0.5.2.1/tests/getPixelAspectRatio.phpt
ffmpeg-php-0.5.2.1/tests/getFrameCrop.phpt
ffmpeg-php-0.5.2.1/tests/getFrameHeight.phpt
ffmpeg-php-0.5.2.1/tests/getFileName.phpt
ffmpeg-php-0.5.2.1/tests/animatedGif.phpt
ffmpeg-php-0.5.2.1/tests/isKeyFrame.phpt
ffmpeg-php-0.5.2.1/tests/getPTS.phpt
ffmpeg-php-0.5.2.1/tests/getFramesBackwards.phpt
ffmpeg-php-0.5.2.1/tests/getFramesForwardPassedEnd.phpt
ffmpeg-php-0.5.2.1/tests/getAudioCodec.phpt
ffmpeg-php-0.5.2.1/tests/persistentMovie.phpt
ffmpeg-php-0.5.2.1/tests/getFramesForward.phpt
ffmpeg-php-0.5.2.1/tests/getFrameCount.phpt
ffmpeg-php-0.5.2.1/tests/getVideoCodec.phpt
ffmpeg-php-0.5.2.1/tests/getAudioChannels.phpt
ffmpeg-php-0.5.2.1/tests/getAudioBitRate.phpt
ffmpeg-php-0.5.2.1/tests/getAudioSampleRate.phpt
ffmpeg-php-0.5.2.1/tests/getVideoBitRate.phpt
ffmpeg-php-0.5.2.1/tests/getDuration.phpt
ffmpeg-php-0.5.2.1/tests/getFrameResampled.phpt
ffmpeg-php-0.5.2.1/tests/getPixelFormat.phpt
ffmpeg-php-0.5.2.1/tests/getFrameWidth.phpt
ffmpeg-php-0.5.2.1/tests/getBitRate.phpt
ffmpeg-php-0.5.2.1/tests/getFrame.phpt
ffmpeg-php-0.5.2.1/tests/getID3Info.phpt
ffmpeg-php-0.5.2.1/tests/hasAudio.phpt
ffmpeg-php-0.5.2.1/tests/getNextKeyFrame.phpt
ffmpeg-php-0.5.2.1/tests/getFrameNumber.phpt
ffmpeg-php-0.5.2.1/tests/getFramesNoArg.phpt
ffmpeg-php-0.5.2.1/CREDITS
ffmpeg-php-0.5.2.1/TODO
ffmpeg-php-0.5.2.1/ffmpeg_movie.c
ffmpeg-php-0.5.2.1/config.m4
ffmpeg-php-0.5.2.1/LICENSE
ffmpeg-php-0.5.2.1/INSTALL
ffmpeg-php-0.5.2.1/gd_io.h
ffmpeg-php-0.5.2.1/gd.h
ffmpeg-php-0.5.2.1/ffmpeg_animated_gif.h
ffmpeg-php-0.5.2.1/ffmpeg_movie.h
ffmpeg-php-0.5.2.1/ChangeLog
ffmpeg-php-0.5.2.1/ffmpeg_frame.c
ffmpeg-php-0.5.2.1/EXPERIMENTAL
ffmpeg-php-0.5.2.1/ffmpeg_frame.h
ffmpeg-php-0.5.2.1/php_ffmpeg.h
ffmpeg-php-0.5.2.1/test_ffmpeg.php
ffmpeg-php-0.5.2.1/ffmpeg-php.c
ffmpeg-php-0.5.2.1/ffmpeg_animated_gif.c
ffmpeg-php-0.5.2.1/ffmpeg_errorhandler.c
[root@yingshi5 ~]# cd ffmpeg-php-0.5.2.1
[root@yingshi5 ffmpeg-php-0.5.2.1]#
[root@yingshi5 ffmpeg-php-0.5.2.1]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
[root@yingshi5 ffmpeg-php-0.5.2.1]# ./configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
[root@yingshi5 ffmpeg-php-0.5.2.1]# ./configure --with-php-config=/usr/local/php/bin/php-config
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers...
configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option
[root@yingshi5 ffmpeg-php-0.5.2.1]# make
make: *** No targets specified and no makefile found. Stop.
[root@yingshi5 ffmpeg-php-0.5.2.1]#
[root@yingshi5 ffmpeg-php-0.5.2.1]#
[root@yingshi5 ffmpeg-php-0.5.2.1]#
[root@yingshi5 ffmpeg-php-0.5.2.1]# ./configure --prefix=/usr/local --enable-shared
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
[root@yingshi5 ffmpeg-php-0.5.2.1]# make
make: *** No targets specified and no makefile found. Stop.
[root@yingshi5 ffmpeg-php-0.5.2.1]#
[root@yingshi5 ffmpeg-php-0.5.2.1]#
[root@yingshi5 ffmpeg-php-0.5.2.1]# ./configure --with-php-config=/usr/local/php/bin/php-config --with-ffmpeg=/usr/local
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers...
configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option
[root@yingshi5 ffmpeg-php-0.5.2.1]#
[root@yingshi5 ffmpeg-php-0.5.2.1]#