Mac下提示autom4te: need GNU m4 1.4 or later: /usr/local/bin/m4

问题说明:

基于mamp 安装redis扩展

执行  git clone https://github.com/nicolasff/phpredis.git

cd phpredis

/Applications/MAMP/bin/php/php7.2.8/bin/phpize

提示:autom4te: need GNU m4 1.4 or later: /Applications/MAMP/Library/bin/m4

MAMP总是试着用自己的/Applications/MAMP/Library/bin/m4

解决问题:

先 mv /Applications/MAMP/Library/bin/m4 /Applications/MAMP/Library/bin/m4_backup

重新安装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.8/bin/phpize

得到解决

希望能帮助你解决你的问题

你可能感兴趣的:(Mac下提示autom4te: need GNU m4 1.4 or later: /usr/local/bin/m4)