mac `autom4te: need GNU m4 1.4 or later: /usr/bin/ `的解决办法

mac `autom4te: need GNU m4 1.4 or later: /usr/bin/ `的解决办法

  • 编译PHP扩展时报错
    ➜  phpredis git:(develop) ✗ /Applications/MAMP/bin/php/php7.2.8/bin/phpize
    Configuring for:
    PHP Api Version:         20170718
    Zend Module Api No:      20170718
    Zend Extension Api No:   320170718
    autom4te: need GNU m4 1.4 or later: /usr/bin/m4
  • 安装m4
   
    brew install m4    

  • 修改/usr/local/bin/autom4te第90行修改m4路径
#my $m4 = $ENV{"M4"} || '/usr/bin/m4';
my $m4 = $ENV{"M4"} || '/usr/local/Cellar/m4/1.4.18/bin/m4';
Comments are closed.