PHP7 MAC xdebug swoole 安装

xcode-select --install

brew tap homebrew/dupes

brew tap homebrew/versions

brew tap homebrew/homebrew-php

brew update

#mariadb \

brew link curl --force

brew install \

wget \

curl \

homebrew/versions/bison27 \

autoconf \

gmp \

automake \

bison27 \

freetype \

openssl \

gd \

gettext \

git \

mcrypt \

t1lib \

zlib \

bzip2 \

homebrew/dupes/bzip2 \

lbzip2 \

libzip \

homebrew/versions/libxml278 \

libxslt

brew unlink homebrew/dupes/libiconv --force

brew install homebrew/dupes/bzip2 lbzip2 pbzip2

brew link homebrew/dupes/bzip2 lbzip2 pbzip2 --force

env YACC=`brew --prefix bison27`/bin/bison ./configure \

--prefix="/usr/local/php" \

--with-config-file-path="/etc/php.ini" \

--enable-mbstring \

--enable-zip \

--enable-bcmath \

--enable-pcntl \

--enable-ftp \

--enable-exif \

--enable-calendar \

--enable-sysvmsg \

--enable-sysvsem \

--enable-sysvshm \

--enable-wddx \

--with-curl \

--with-iconv \

--with-gmp \

--with-gd \

--with-jpeg-dir=`brew --prefix gd` \

--with-png-dir=`brew --prefix gd` \

--with-freetype-dir=`brew --prefix freetype` \

--enable-gd-native-ttf \

--enable-gd-jis-conv \

--with-openssl-dir=`brew --prefix openssl` \

--enable-mysqlnd \

--with-mysqli=mysqlnd \

--with-pdo-mysql=mysqlnd \

--with-mysql-sock=/tmp/mysql.sock \

--with-gettext=`brew --prefix gettext` \

--with-zlib=`brew --prefix zlib` \

--with-bz2=`brew --prefix bzip2` \

--with-mcrypt=`brew --prefix mcrypt` \

--with-t1lib=`brew --prefix t1lib` \

--with-xpm-dir=/usr

你可能感兴趣的:(PHP7 MAC xdebug swoole 安装)