PHP missing dependencies
• 1 min read
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.0To fix the issue, I followed this tips on Github issues
Install the optional dependencies:
$~ brew install gmp libsodium imagemagickReinstall 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 zlibReinstall latest php with asdf and set it as the default
$~ asdf install php latest
$~ asdf global php latestI reshimed it just to make sure
$~ asdf reshim phpThat's all