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的源码就可以轻松使用了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容