(if you have any errors during compiling about missing zend_config.h, you missed one step - configure your PHP sources first!) If you want to install Imagick manually.Or any other version e.g.: imagick-3.1.0RC1 Make sure that your PECL is up-to-date:.cd /Applications/MAMP/bin/php/php5.?.?/include/php.Configure PHP sources (it’ll create necessary files i.e., zend_config.h, tsrm_config.h etc.).Mv /Applications/MAMP/bin/php/php5.2.17/include/php-5.?.? /Applications/MAMP/bin/php/php5.2.17/include/php Rename your php-5.x.x directory to php (without the version numbering).Tar zxvf php-5.x.x.tar.gz -C /Applications/MAMP/bin/php/php5.?.?/include Untar php-5.x.x.tar.gz into /Applications/MAMP/bin/php/php5.*/include or /Applications/MAMP/bin/php5/include.Mkdir -vp /Applications/MAMP/bin/php5/include Create a directory for your PHP sources:.Identify your php-5.x.x.tar.gz file (where 5.x.x is your version of PHP).
Install ImageMagick (required by PHP ffmpeg.so extension).Install ffmpeg (required by PHP ffmpeg.so extension).If you don’t have any, please install brew.(which brew || which port) & echo YES || echo NO
Execute the following line in Terminal to check:.
How to install ffmpeg php ubuntu 16.04 command line for mac#