title: How do I install imagemagick to php on linux homebrew?
body: <p>I'm trying to set up my linux environment to use PHP for my job. I'll spare you most of the details, but one extension I need is ImageMagick. I'm using Homebrew to help me install stuff. I'm using PHP 7.4. The commands I've run based on what I've read are as follows:</p>
  <pre><code>brew install php@7.4
  brew install imagemagick
  pecl install imagcik
  </code></pre>
  <p>However, when running the last command, I get this error, saying <code>pcre2.h</code> not found:
  <a href="https://i.stack.imgur.com/56V2P.png" rel="nofollow noreferrer">error image</a></p>
  <p>I've done a lot of googling and haven't been able to find anything that helps with this specific issue. I don't know what I'm doing wrong. Everything is currently done through homebrew, but if it helps my linux distro is OpenSUSE Tumbleweed. Thanks!</p>