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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容