mac 安装php swoole扩展

1.不要照抄把MacOSX10.13.sdk换成你自己的macos版本

sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include /usr/include

2.sudo phpize

3../configure --with-php-config=/Applications/MxSrvs/bin/php/bin/php-config

4.make

5.make install

 

你可能感兴趣的:(mac)