Homebrew php opcache issue

1

I followed a tutorial to get a local dev environment running on my Yosemite machine using Homebrew. All seems ok, except for the fact that php -v shows a problem with opcache.

Failed loading /usr/local/opt/php56-opcache/opcache.so: dlopen(/usr/local/opt/php56-opcache/opcache.so, 9): Symbol not found: _compiler_globals Referenced from: /usr/local/opt/php56-opcache/opcache.so Expected in: flat namespace in /usr/local/opt/php56-opcache/opcache.so

I found this post on github, someone with the exact same problem but I'm not sure if I should run what he proposes: brew install php56 --with-thread-safety --homebrew-apxs --enable-opcache ?

How can I fix this?

user39822

Posted 2015-09-27T09:29:12.443

Reputation: 169

Answers

1

Try running this command:

brew reinstall php56-opcache --build-from-source

See: PHP 56 and opcache at GitHub.

drmartin

Posted 2015-09-27T09:29:12.443

Reputation: 111

What is the expected result? Why should this help? – Seth – 2017-01-20T09:17:40.120