How to solve Library not loaded error in Mac (M1) - PHP CLI

890 Views Asked by At

I am getting this error when I try php -v

enter image description here

I have installed php using brew. I have following folders in /opt/homebrew/opt directory

the output of which php:

/opt/homebrew/bin/php

I tried following commands

brew link php

brew install libtiff

brew reinstall libtiff

1

There are 1 best solutions below

1
Dhruv Raval On

After upgrading brew error is solved.

brew update

brew upgrade

brew doctor