Anu - 2023-01-18

Hi mam,

There is an updation in my query. Now i am facing issue in the running the "./configure " command after extracting the ffmpeg-php tar file

=============
root@ip-172-31-93-76:/usr/local/src/new/ffmpeg/ffmpeg-php-0.6.0# ./configure --w ith-ffmpeg=/usr/local/src/new/ffmpeg/ffmpeg-php-0.6.0 --libdir=/usr/lib/x86_64- linux-gnu/ --enable-libavcodec --enable-shared --enable-libavutil --enable-libav format --enable-libavdevice --enable-libavfilter --enable-libavresample --enable -libswscale --enable-libswresample --enable-libpostproc
configure: WARNING: unrecognized options: --enable-libavcodec, --enable-libavuti l, --enable-libavformat, --enable-libavdevice, --enable-libavfilter, --enable-li bavresample, --enable-libswscale, --enable-libswresample, --enable-libpostproc
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
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-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20190902 -I/usr/include/php/2019 0902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/u sr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20190902
checking for PHP installed headers prefix... /usr/include/php/20190902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers... ...found in /usr/local/include/ffmpeg
checking for ffmpeg libavcodec.so...
configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compile d as shared libraries using the --enable-shared option

=============

I have copied all the library files from my system library directory to the ffmpeg folder

========
root@ip-172-31-93-76:/ffmpeg-php-0.6.0# ll lib
libavcodec.a libavdevice.a libavfilter.a libavformat.a libavutil.a libswresample.a libswscale.a
libavcodec.so libavdevice.so libavfilter.so libavformat.so libavutil.so libswresample.so libswscale.so
libavcodec.so.58 libavdevice.so.58 libavfilter.so.7 libavformat.so.58 libavutil.so.56 libswresample.so.3 libswscale.so.5
libavcodec.so.58.54.100 libavdevice.so.58.8.100 libavfilter.so.7.57.100 libavformat.so.58.29.100 libavutil.so.56.31.100 libswresample.so.3.5.100 libswscale.so.5.5.100

========

But still it is showing that it cant find the libavcodec.so library files of ffmpeg.

Could you please assist me as soon as possible.