(I submitted another issue about pecl install redis
not working, but this is for intl, I figured it should be a separate issue)
Mediawiki requires intl, which I heard requires icu4c. I ran brew install icu4c
to install it, but when I enter in which icu4c
, it outputs icu4c not found
. When I try pecl install intl
but I got this error:
checking whether to enable internationalization support... yes, shared
checking for icu-uc >= 50.1 icu-io icu-i18n... no
configure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:
No package 'icu-uc' found
No package 'icu-io' found
No package 'icu-i18n' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ICU_CFLAGS
and ICU_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
ERROR: `/private/tmp/pear/temp/intl/configure --with-php-config=/usr/local/opt/php@7.4/bin/php-config --with-icu-dir=DEFAULT' failed
What should I do?
I left prompts like Specify where ICU libraries and headers can be found [DEFAULT]
blank. Am I supposed to put answers in? If so, what?
btw, which php outputs /usr/local/bin/php
after running brew install php@7.4