Mac os X PHP56 ApcU via Brew - Symbol not found: _zend_signal_globals

和自甴很熟 提交于 2019-12-24 05:18:29

问题


When trying to install APCu via brew I get the error

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php56-apcu/apcu.so' - dlopen(/usr/local/opt/php56-apcu/apcu.so, 9): Symbol not found: _zend_signal_globals Referenced from: /usr/local/opt/php56-apcu/apcu.so Expected in: flat namespace in /usr/local/opt/php56-apcu/apcu.so in Unknown on line 0

This occurs no matter how I install APCu

brew install php56-apcu
brew install --build-from-source php56-apcu
brew install php56-apcu --enable-apc-bc

APC fails to appear in phpinfo too.

Opcache is install fine, as is php-intl


回答1:


the executable in /usr/bin/php would necessarily be the apple distribution php on El-Capitan (cant be certain about previous versions, OSX is such a moving target).

Try to add /usr/local/bin as top dog in your path (in file .bash_profile) and retry in a newly instantiated terminal window.



来源:https://stackoverflow.com/questions/39708271/mac-os-x-php56-apcu-via-brew-symbol-not-found-zend-signal-globals

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!