macOS手动安装 m4, autoconf, automake, libtool

在安装yaf拓展时,使用到了phpize,在执行 phpize 时会出现以下报错

 

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then, rerun this script.

 

初次使用 phpize 需要 安装 autoconf

请按照下面的安装顺序,依次安装。

##安装m4
curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz

tar -xzvf m4-1.4.13.tar.gz

cd m4-1.4.13

./configure --prefix=/usr/local

make

sudo make install

##安装autoconf
cd .. curl
-O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz tar -xzvf autoconf-2.65.tar.gz cd autoconf-2.65 ./configure --prefix=/usr/local # ironic, isn't it? make sudo make install
##安装automake
cd .. curl
-O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz tar xzvf automake-1.11.tar.gz cd automake-1.11 ./configure --prefix=/usr/local make sudo make install
##安装libtool
cd .. curl
-O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz tar xzvf libtool-2.2.6b.tar.gz cd libtool-2.2.6b ./configure --prefix=/usr/local make sudo make install

 

posted @ 2019-08-06 13:56  一个橡皮擦  阅读(1425)  评论(0编辑  收藏  举报