asdf-php icon indicating copy to clipboard operation
asdf-php copied to clipboard

Additional dependencies needed for PHP 8.2.0

Open cweagans opened this issue 1 year ago • 3 comments

I tried to install PHP 8.2.0 with this plugin and in addition to the dependencies mentioned in the readme and it did not work. To get PHP to compile, I also needed to install the following:

  • gd
  • bison
  • re2c
  • libiconv
  • libzip

Might be worth adding a note to the readme.

cweagans avatar Dec 27 '22 21:12 cweagans

Actually, they are mentioned in the README:

macOS

To install PHP on macOS, you'll need a set of packages installed via homebrew.

There's also a set of optional packages which enable additional extensions to be enabled:

brew install gmp libsodium imagemagick

The links points to this:

brew install autoconf automake bison freetype gd gettext icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip pkg-config re2c zlib

which contains the packages you mentioned.

When you say:

the dependencies mentioned in the readme

I suppose you meant the brew install line in the README, which is indeed a bit misleading hehe 🤓

angristan avatar Dec 31 '22 17:12 angristan

I still having this problem on PHP 8.3.1 MacOS

giovannism20 avatar Dec 30 '23 22:12 giovannism20

PHP 8.3.3 installed successfully for me after installing the auxiliary libs mentioned by @angristan 's comment. Thanks a lot!

costa-simulatedreality avatar Feb 16 '24 19:02 costa-simulatedreality