手动安装m4, autoconf, automake, libtool

こ雲淡風輕ζ 提交于 2019-12-20 20:53:49

安装m4

wget http://mirrors.kernel.org/gnu/m4/m4-1.4.18.tar.gz
&& tar -xzvf m4-1.4.18.tar.gz
&& cd m4-1.4.18
&& ./configure --prefix=/usr/local
make && make install
cd …

安装autoconf

wget http://mirrors.kernel.org/gnu/autoconf/autoconf-2.69.tar.gz
&& tar -xzvf autoconf-2.69.tar.gz
&& cd autoconf-2.69
&& ./configure --prefix=/usr/local
make && make install
cd …

安装automake

wget http://mirrors.kernel.org/gnu/automake/automake-1.16.1.tar.gz
&& tar xzvf automake-1.16.1.tar.gz
&& cd automake-1.16.1
&& ./configure --prefix=/usr/local
make && make install
cd …

安装libtool

wget http://mirrors.kernel.org/gnu/libtool/libtool-2.4.6.tar.gz
&& tar xzvf libtool-2.4.6.tar.gz
&& cd libtool-2.4.6
&& ./configure --prefix=/usr/local
make && make install
cd …

注:

1.安装autoconf时报错: Can’t locate Data/Dumper.pm in @INC
原因:缺少 Data-Dumper-2.154.tar.gz这个包,直接下载安装。

wget http://www.cpan.org/modules/by-module/Data/Data-Dumper-2.154.tar.gz
tar xvzf Data-Dumper-2.154.tar.gz
cd Data-Dumper-2.154
perl Makefile.PL
make
make install

2.安装Data-Dumper包时报错:Can’t locate ExtUtils/MakeMaker.pm in @INC
原因:缺少 perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

yum install -y perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker

3.安装automake-1.16.1版本时报错:elp2man: can’t get `–help’ info from automake-1.16
vi Makefile
在3694行的末尾加上–no-discard-stderr:

        doc/aclocal-$(APIVERSION).1: $(aclocal_script) lib/Automake/Config.pm
                $(update_mans) aclocal-$(APIVERSION)
        doc/automake-$(APIVERSION).1: $(automake_script) lib/Automake/Config.pm
                $(update_mans) automake-$(APIVERSION) --no-discard-stderr

4.查看版本 /usr/bin/automake --version 报错:Can’t locate Thread/Queue.pm in @INC

sudo yum install perl-Thread-Queue

5.安装m4 configure: error: perl is not found

yum -y install perl

6.安装m4 configure: error: no acceptable C compiler found in $PATH

yum -y install gcc
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!