PHP missing dependencies
I was having some issues with my PHP package installed through asdf yesterday. Something about missing libiconv and when I ran php -v
it returns me this response:
No php executable found for php 8.2.0
To fix the issue, I followed this tips on Github issues
Install the optional dependencies:
$~ brew install gmp libsodium imagemagick
Reinstall the possible missing dependencies. brew
will just skipped any packages that I’ve already installed.
$~ brew install autoconf automake bison freetype gd gettext icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip pkg-config re2c zlib
Reinstall latest php with asdf and set it as the default
$~ asdf install php latest
$~ asdf global php latest
I reshimed it just to make sure
$~ asdf reshim php
That’s all