Skip to content

Instantly share code, notes, and snippets.

@chrisliuqq
Created November 9, 2020 16:25
Show Gist options
  • Save chrisliuqq/1ef366004054ac8848e8746057255dce to your computer and use it in GitHub Desktop.
Save chrisliuqq/1ef366004054ac8848e8746057255dce to your computer and use it in GitHub Desktop.
mac 10.12 make php 7.4.12
# because brew's installation is alwasys failed maybe due to the os 10.12 too old.
# so i have to configure and build myself, and remove some configure parameters to bypass some mismatch extension
./buildconf --force
./configure --prefix=/usr/local/Cellar/php/7.4.12 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/7.4 --with-config-file-path=/usr/local/etc/php/7.4 --with-config-file-scan-dir=/usr/local/etc/php/7.4/conf.d --with-pear=/usr/local/Cellar/php/7.4.12/share/php/pear --with-os-sdkpath= --enable-bcmath --enable-calendar --enable-dtrace --enable-ftp --enable-gd --enable-mbregex --enable-mbstring --enable-mysqlnd --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-bz2=/usr --with-curl --with-external-gd --with-external-pcre --with-gettext=/usr/local/opt/gettext --with-gmp=/usr/local/opt/gmp --with-iconv=/usr --with-layout=GNU --with-libxml --with-libedit --with-mhash=/usr --with-mysql-sock=/tmp/mysql.sock --with-mysqli=mysqlnd --with-ndbm=/usr --with-openssl --with-password-argon2=/usr/local/opt/argon2 --with-pdo-dblib=/usr/local/opt/freetds --with-pdo-mysql=mysqlnd --with-pdo-sqlite --with-pgsql=/usr/local/opt/libpq --with-pic --with-sodium --with-sqlite3 --with-tidy=/usr/local/opt/tidy-html5 --with-xmlrpc --with-xsl --with-zip --with-zlib
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment