Skip to content

Instantly share code, notes, and snippets.

@nojimage
Last active January 24, 2020 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nojimage/0ed784aae2b3121ec12eb16124a36878 to your computer and use it in GitHub Desktop.
Save nojimage/0ed784aae2b3121ec12eb16124a36878 to your computer and use it in GitHub Desktop.
install php 5.6.40 with brew
## install openssl 1.0.2t
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/
git checkout 8b9d6d688f483a0f33fcfc93d433de501b9c3513 -- openssl.rb
brew install openssl
## build php: "/usr/local/Cellar/icu4c/64.2" is a specific icu4c version.
LDFLAGS=-L/usr/local/Cellar/icu4c/64.2 \
CONFIGURE_OPTS="--with-pear --with-openssl=/usr/local/Cellar/openssl/1.0.2t --with-icu-dir=/usr/local/Cellar/icu4c/64.2" \
phpenv install 5.6.40
## php 5.3
PHP_AUTOCONF=/usr/local/opt/autoconf@2.13/bin/autoconf213 \
LDFLAGS=-L/usr/local/Cellar/icu4c/64.2 \
CONFIGURE_OPTS="--with-pear --with-openssl=/usr/local/Cellar/openssl/1.0.2t --with-icu-dir=/usr/local/Cellar/icu4c/64.2" \
phpenv install 5.3.29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment