Created
April 7, 2019 17:45
-
-
Save mozhu1024/8f110774a653ea360c0e447e53fc5144 to your computer and use it in GitHub Desktop.
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
export LDFLAGS="-L/usr/local/opt/openssl/lib \ | |
-L/usr/local/opt/sqlite/lib \ | |
-L/usr/local/opt/curl-openssl/lib \ | |
-L/usr/local/opt/webp/lib \ | |
-L/usr/local/opt/jpeg/lib \ | |
-L/usr/local/opt/libpng/lib \ | |
-L/usr/local/opt/freetype/lib \ | |
-L/usr/local/opt/gettext/lib \ | |
-L/usr/local/opt/gmp/lib \ | |
-L/usr/local/opt/unixodbc/lib \ | |
-L/usr/local/opt/freetds/lib \ | |
-L/usr/local/opt/libpq/lib \ | |
-L/usr/local/opt/aspell/lib \ | |
-L/usr/local/opt/libzip/lib \ | |
-L/usr/local/opt/libiconv/lib" | |
export CPPFLAGS="-I/usr/local/opt/openssl/include \ | |
-I/usr/local/opt/sqlite/include \ | |
-I/usr/local/opt/curl-openssl/include \ | |
-I/usr/local/opt/webp/include \ | |
-I/usr/local/opt/jpeg/include \ | |
-I/usr/local/opt/libpng/include \ | |
-I/usr/local/opt/freetype/include \ | |
-I/usr/local/opt/gettext/include \ | |
-I/usr/local/opt/gmp/include \ | |
-I/usr/local/opt/unixodbc/include \ | |
-I/usr/local/opt/freetds/include \ | |
-I/usr/local/opt/libpq/include \ | |
-I/usr/local/opt/aspell/include \ | |
-I/usr/local/opt/libzip/include \ | |
-I/usr/local/opt/libiconv/include" | |
./configure \ | |
--prefix=/usr/local/opt/php@5.6d \ | |
--sysconfdir=/usr/local/etc/php/5.6d \ | |
--with-config-file-path=/usr/local/etc/php/5.6d \ | |
--with-config-file-scan-dir=/usr/local/etc/php/5.6d/conf.d \ | |
--with-pear=/usr/local/opt/php@5.6d/share/php/pear \ | |
--localstatedir=/usr/local/var \ | |
--enable-bcmath \ | |
--enable-dba \ | |
--enable-exif \ | |
--enable-ftp \ | |
--enable-mbregex \ | |
--enable-mbstring \ | |
--enable-mysqlnd \ | |
--enable-pcntl \ | |
--enable-shmop \ | |
--enable-soap \ | |
--enable-sockets \ | |
--enable-sysvmsg \ | |
--enable-sysvsem \ | |
--enable-sysvshm \ | |
--enable-wddx \ | |
--enable-zip \ | |
\ | |
--with-gd \ | |
--with-libzip \ | |
--with-xmlrpc \ | |
--with-pic \ | |
--with-curl=/usr/local/opt/curl-openssl \ | |
--with-freetype-dir=/usr/local/opt/freetype \ | |
--with-gettext=/usr/local/opt/gettext \ | |
--with-gmp=/usr/local/opt/gmp \ | |
--with-jpeg-dir=/usr/local/opt/jpeg \ | |
--with-layout=GNU \ | |
--with-mysql-sock=/tmp/mysql.sock \ | |
--with-mysqli=mysqlnd \ | |
--with-openssl=/usr/local/opt/openssl \ | |
--with-pdo-dblib=/usr/local/opt/freetds \ | |
--with-pdo-mysql=mysqlnd \ | |
--with-pdo-pgsql=/usr/local/opt/libpq \ | |
--with-pdo-sqlite=/usr/local/opt/sqlite \ | |
--with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc \ | |
--with-pgsql=/usr/local/opt/libpq \ | |
--with-png-dir=/usr/local/opt/libpng \ | |
--with-pspell=/usr/local/opt/aspell \ | |
--with-sqlite3=/usr/local/opt/sqlite \ | |
--with-unixODBC=/usr/local/opt/unixodbc \ | |
--with-libxml-dir=/usr/local/opt/libxml2 \ | |
--with-iconv='/usr/local/opt/libiconv' \ | |
--with-iconv-dir='/usr/local/opt/libiconv' \ | |
--with-bz2='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr' \ | |
--with-kerberos='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr' \ | |
--with-libedit='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr' \ | |
--with-mhash='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr' \ | |
--with-ndbm='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr' \ | |
--with-xsl='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr' \ | |
--with-zlib='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr' \ | |
--enable-debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment