checking for ffmpeg headers… configure: error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs using the –enable-shared option error while installing ffmpeg in cPanel servers.
ello,
If you are getting following error while installing ffmpeg-php php extension in cPanel servers it seems that some header files are not located in “/usr/local/include/ffmpeg” directory.
Error.
| checking for ffmpeg support… yes, shared checking for ffmpeg headers… configure: error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs using the –enable-shared option |
You can fix this error using the following steps .
1. Check whether “/usr/local/include/ffmpeg” directory is created while installing ffmpeg. If not, create this directory.
| #mkdir /usr/local/include/ffmpeg |
2. Copy the necessary ffmpeg header files to “/usr/local/include/ffmpeg”.
| #cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg #cp -p /usr/local/src/ffmpeg/libavformat/avformat.h /usr/local/include/ffmpeg #cp -p /usr/local/src/ffmpeg/libavcodec/avcodec.h /usr/local/include/ffmpeg |
3. Once you have done this you need to install your ffmpeg(not ffmpeg-php) package again. After installing the ffmpeg, install ffmpeg-php.
This will fix your issue.
Regards
AlexP


















