pecl can't find imagick package
Asked Answered
E

1

8

I am attempting to install imagick on my mac. I have searched and read a lot...including this excellent write up.

However, I am running into an issue with the final step and that is the actual install of the imagick package via pecl. I am receiving this error:

No releases available for package "pecl.php.net/imagick"
install failed

I have gone to the pecl site and of course I see a host of released imagick packages, so I am unclear as to why this fails. Any ideas will be greatly, greatly appreciated.

Cheers!

Ettaettari answered 26/10, 2018 at 6:18 Comment(2)
check this #35954264Mousebird
For some reasons, using "sudo" made it work for me. It was not found without "sudo" and found with it (using sudo pecl install imagick)Reinforcement
H
2

Surprisingly, the error is because of expired/invalid CA certificates. You might want to update the certificate from pecl.php.net, or update the software, or try the following workarounds:

wget --no-check-certificate https://pecl.php.net/get/imagick-3.7.0.tgz
pecl install --offline ./imagick-3.7.0.tgz

Or you can download the latest version here: https://pecl.php.net/package/imagick and run the 2nd command.

Hirohito answered 11/8, 2023 at 9:54 Comment(1)
Thanks as it worked. I was still seeing errors after running the steps on docker alpine image, but it was fixed after following steps from this issue and getting phpize dependencies installed on the container. This is good solution for php versions that are no longer mainstream or maintained (legacy project) to install packages offline/manually.Malign

© 2022 - 2024 — McMap. All rights reserved.