Last active
March 11, 2020 18:06
-
-
Save oleg-andreyev/ca016850c47e521b9cc974e4cfe8ebf4 to your computer and use it in GitHub Desktop.
install php 7.4snapshot on MacOS Majova using brew and phpenv
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
# Follow https://gist.github.com/oleg-andreyev/05fae22548ccdff8deebde144c4cbe7f | |
# nproc alias https://gist.github.com/oleg-andreyev/053b90ef33d2c29446ef466a2817d01c | |
# avoid brew cleanup | |
export HOMEBREW_NO_INSTALL_CLEANUP=1 | |
# icu4c must be >= 64.0 | |
brew install icu4c bison@3.4 krb5 oniguruma libedit | |
export PATH="/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/bison/bin:/usr/local/opt/krb5/bin:/usr/local/opt/krb5/sbin:/usr/local/opt/openssl@1.1/bin:$PATH" | |
export LDFLAGS="-L/usr/local/opt/libedit/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/krb5/lib -L/usr/local/opt/openssl@1.1/lib" | |
export CPPFLAGS="-I/usr/local/opt/libedit/include -I/usr/local/opt/icu4c/include -I/usr/local/opt/krb5/include -I/usr/local/opt/openssl@1.1/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/libedit/lib/pkgconfig:/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/krb5/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig:$PKG_CONFIG_PATH" | |
# https://github.com/php/php-src/blob/PHP-7.4/UPGRADING#L648 | |
PHP_BUILD_EXTRA_MAKE_ARGUMENTS="-j$(nproc)" PHP_BUILD_CONFIGURE_OPTS="--enable-gd --with-pear --enable-sockets" phpenv install 7.4snapshot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment