search

Home  >  Q&A  >  body text

Brew installed php extension and did not find the specified configuration option

Hello everyone,

I got the following error when using the php verification code:

The reason was found to be the lack of the FreeType library in gd.

View phpinfo:

The existing php has been uninstalled through brew, through:

brew install homebrew/php/php56 \
--with-freetype \
--without-snmp \
--without-apache \
--with-debug \
--with-fpm \
--with-intl \
--with-homebrew-curl \
--with-homebrew-libxslt \
--with-homebrew-openssl \
--with-imap \
--with-mysql \
--with-tidy

I want to reinstall the above content, but it prompts:

I have also updated brew, but it still doesn’t work,

Please give me some solutions and advice from the big guys!

Thank you!

ringa_leeringa_lee2698 days ago828

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-06-26 10:51:12

    brew install homebrew/php/php56
    brew install homebrew/php/php56-gd
    Same for other extensions

    reply
    0
  • Cancelreply