Last active
February 9, 2023 11:27
-
-
Save matthewlehner/8c05b30c5bce9a890d37d982d77946ff to your computer and use it in GitHub Desktop.
Install PHP with asdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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