Reputation: 321
After reinstalling PHP7.1 on Macosx I have a the following errors: Incompatible library version.
I have done this command:
brew reinstall [email protected]
And I have this error when trying php -v
dyld: Library not loaded: /usr/local/opt/c-ares/lib/libcares.2.dylib
Referenced from: /usr/local/opt/[email protected]/bin/php
Reason: Incompatible library version: php requires version 6.0.0 or later, but
libcares.2.dylib provides version 5.0.0
Abort trap: 6
I don't have any idea how to solve this and did not find anybody having the same problem
Would you have any idea how to have php working again ?
Thank you
Upvotes: 1
Views: 485
Reputation: 11
I hit a similar error after updating Ruby on High Sierra. I was able to solve by running brew upgrade
.
Upvotes: 1