[英]Php homebrew “Symbol not found: _compiler_globals” while loading php intl extension as apache module
I installed php56 via homebrew 我通过自制软件安装了php56
brew install php56
Loaded it into apache in httpd.conf 将其加载到httpd.conf中的apache中
LoadModule php5_module /usr/local/Cellar/php56/5.6.31_7/libexec/apache2/libphp5.so
And everything seems fine. 一切似乎都很好。 But when I added php-intl 但是当我添加php-intl
brew install php56-intl 酿造安装php56-intl
Intl, doesn't load, and I get the following error: Intl,不会加载,并且出现以下错误:
PHP Core Warning 'yii\base\ErrorException' with message 'PHP Startup:
Unable to load dynamic library '/usr/local/opt/php56-intl/intl.so' - dlopen(/usr/local/opt/php56-intl/intl.so, 9):
Symbol not found: _compiler_globals
Referenced from: /usr/local/opt/php56-intl/intl.so
Expected in: flat namespace in /usr/local/opt/php56-intl/intl.so'
What is strange, it works fine when using php-cli(/usr/local/bin/php), error only appears when loading as apache module. 奇怪的是,当使用php-cli(/ usr / local / bin / php)时,它工作正常,仅当作为apache模块加载时才会出现错误。
What is my misconfiguration? 我的配置错误是什么?
You can try brew search intl
first like below: 您可以先尝试brew search intl
如下所示:
➜ brew search intl
==> Searching local taps...
homebrew/php/php53-intl homebrew/php/php55-intl homebrew/php/php70-intl intltool
homebrew/php/php54-intl homebrew/php/php56-intl homebrew/php/php71-intl
==> Searching taps on GitHub...
==> Searching blacklisted, migrated and deleted formulae...
Then select the right version 'intl' to install, for example: 然后选择要安装的正确版本“ intl”,例如:
brew search intl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.