mac os安装 autoconf and automake

在安装php扩展的时候使用命令 phpize报错
Cannot find config.m4



此文转自CSDN博客
原文地址在mac os 中安装 autoconf and automake

你需要安装很多东西,请按照以下顺序安装:

安装的版本包也不能错:

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

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

cd ..

# here you might want to restart your terminal session, to ensure the new autoconf is picked up and used in the rest of the script

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

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

好了,现在去找automake管理makefile的源码就可以轻松使用了

你可能感兴趣的:(mac os安装 autoconf and automake)