> ## Content Index
> Fetch the complete content index at: https://ostreff.info/llms.txt
> Use this file to discover other available public pages before exploring further.

# Build graphics/pecl-imagick PHP 8 compatible extension
- URL: https://ostreff.info/magick-php-extension-from/
- Published: 2021-02-13T14:19:42.000Z
- Updated: 2021-02-13T14:19:42.000Z
- Author: Jordan Ostreff
- Tags: FreeBSD

The version in the ports tree is not working - it shows some errors when installed. But the source on the master brach of [the Imagick repo](https://github.com/Imagick/imagick?ref=ostreff.info) seems to work.

Here's how you can use it.

1. Clone the repo somewhere on disk
2. Execute following commands:

cd   
phpize  
./configure  
make  
make install 

cat > /usr/local/etc/php/ext-20-imagick.ini  
extension=imagick.so  
^D

php -i | grep imagick  
/usr/local/etc/php/ext-20-imagick.ini,  
imagick  
imagick module => **enabled**  
imagick module version => @PACKAGE\_VERSION@  
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel  
imagick.locale\_fix => 0 => 0  
imagick.progress\_monitor => 0 => 0  
imagick.set\_single\_thread => 0 => 0  
imagick.shutdown\_sleep\_count => 10 => 10  
imagick.skip\_version\_check => 0 => 0