美文网首页
mac phpize生成configure

mac phpize生成configure

作者: Linsonga | 来源:发表于2019-08-12 12:14 被阅读0次

问题说明:

基于mamp 安装swoole扩展

执行

  • /Applications/MAMP/bin/php/php7.2.1/bin/phpize

提示

autom4te: need GNU m4 1.4 or later:/usr/bin/m4

说明m4的版本太低了

重新安装m4

  • brew uninstall m4
  • brew install m4

执行成功后

  • echo 'export PATH="/usr/local/opt/m4/bin:$PATH"' >> ~/.bash_profile
  • ln -s /usr/local/opt/m4/bin/m4 /Applications/MAMP/Library/bin/m4
  • /Applications/MAMP/bin/php/php7.2.1/bin/phpize

查看m4版本

  • /usr/bin/m4 --version

如果出现的话

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

打开终端输入

  • xcode-select --install

回车后,系统弹出下载xcode,点击确认,下载完成后即可。(实际上不是下载xcode,可能下载xcode有关插件,下载时长约1分钟)

image.png

相关文章

网友评论

      本文标题:mac phpize生成configure

      本文链接:https://www.haomeiwen.com/subject/hhoyjctx.html