Page 1 of 1

Imagick.so file having wrong structure in mac OS High Sierra

Posted: 2019-06-06T01:52:55-07:00
by mustmuna
Hi

I am trying to install and use imagick php extention in localhost to use Adobe Stock API(SDK) and AMPPS
And I am hitting a brick wall.

After many pitfalls I finally managed to install it.
and the file is having the wrong structure.

https://photos.app.goo.gl/mpDN3if3YqXo2gYAA

I tried this on two computes. I read that it can be connected to 64 bit versus 32 bit issue.
But this one should be equal to 64 bit
Mac os High Sierra
2,4 GHz Intel Core i5

file imagick.so
imagick.so: Mach-O 64-bit bundle x86_64

This command said that Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.
brew install homebrew/php/php71-imagick

so I installed with pear using pecl
pecl install imagick

The .so file is copied here
/Applications/AMPPS/php-7.1/lib/extensions/ext
and it created it here
/Applications/AMPPS/php-7.1/lib/extensions/no-debug-non-zts-20160303

What to do now? I am at the end of my wits