mac是自带php的,但是感觉目录比较乱,于是打算自己装一个php7,但是安装过程中发现mac很多插件都不存在,解决方法如下
打开命令行
cd /Library/Developer/CommandLineTools/Packages/
./macOS_SDK_headers_for_macOS_10.14.pkg
安装一下工具包,在进行./configure,完美解决
顺便放一下之前编译的参数:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysqli --with-iconv-dir=/usr/local --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fpm --enable-mbstring --with-gd --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap --without-pear --with-zlib --enable-pdo --with-pdo-mysql