Skip to content

Instantly share code, notes, and snippets.

@benmarsh
Last active May 13, 2023 10:55
Show Gist options
  • Save benmarsh/873a37bffd06d3150ed10b33e90352ab to your computer and use it in GitHub Desktop.
Save benmarsh/873a37bffd06d3150ed10b33e90352ab to your computer and use it in GitHub Desktop.
Install ImageMagick on Laravel Valet with PHP 7.4
# 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
@izshreyansh
Copy link

Thanks man, This seems to do the trick.

brew install imagemagick
pecl install imagick

@jackwh
Copy link

jackwh commented Feb 16, 2022

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 👍

@mobielbekeken-thijs
Copy link

I had to restart Valet as well:
valet restart

@alpharameeztech
Copy link

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