Skip to content

Instantly share code, notes, and snippets.

@matthewlehner
Last active February 9, 2023 11:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewlehner/8c05b30c5bce9a890d37d982d77946ff to your computer and use it in GitHub Desktop.
Save matthewlehner/8c05b30c5bce9a890d37d982d77946ff to your computer and use it in GitHub Desktop.
Install PHP with asdf
# run `brew bundle --file=path/to/this/Brewfile` to install these deps for PHP
brew "bison"
brew "icu4c"
brew "libiconv"
brew "openssl"
brew "libpq"
brew "zlib"
PATH="$(brew --prefix bison)/bin:$(brew --prefix icu4c)/bin:$(brew --prefix icu4c)/sbin:$PATH" \
PHP_CONFIGURE_OPTIONS="\
--with-iconv=$(brew --prefix libiconv) \
--with-openssl=$(brew --prefix openssl) \
--with-pgsql=$(brew --prefix libpq) \
--with-pdo-pgsql=$(brew --prefix libpq) \
--with-zlib=$(brew --prefix zlib)" \
asdf install php 7.1.19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment