L
L
lagudal2022-03-09 11:25:27
macOS
lagudal, 2022-03-09 11:25:27

php-intl fell off on mac big sur. PHP-7.3 under homebrew. How to fix?

Problem. Set up a working environment nginx+php-fpm under brew, everything worked fine. For working reasons, the version of php is 7.3, and so far it will not be possible to change it - for the same reasons.
I don't know why, but after installing some additional package with brew - brew install .... - a lot of important packages were removed, I see that php does not work at all, I installed [email protected] again, it seems to work. But now there is no intl extention, and I can't install it in any way. All google clambered - nothing works.
For example, it is proposed to install with pecl -
sudo pecl install intl

the installation starts, but as soon as it reaches the assembly, it crashes with an error:

#include <php.h>
         ^~~~~~~
1 error generated.
make: *** [php_intl.lo] Error 1
ERROR: `make' failed

I try from the sources - the same thing, configure is fine, but as soon as I start building - make - 'php.h' file not found
I try again brew reinstall [email protected] - everything is fine, no errors, but no intl. And without it, nothing.
What else can you try?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question