Last active
May 13, 2023 10:55
-
-
Save benmarsh/873a37bffd06d3150ed10b33e90352ab to your computer and use it in GitHub Desktop.
Install ImageMagick on Laravel Valet with PHP 7.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upgrade to PHP 7.4 | |
brew update | |
brew upgrade php | |
# Update Valet | |
valet on-latest-version | |
composer global update | |
valet install | |
# Install ImageMagick | |
brew install imagemagick | |
pecl install imagick |
I ran into this error from pecl install imagick
on a fresh setup of Valet with macOS Monterey:
Please reinstall the pkg-config distribution
The fix is to run brew install pkg-config
first, then try again 👍
I had to restart Valet as well:
valet restart
Thanks @benmarsh , it worked for me as well.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks man, This seems to do the trick.