wget http://ftp.gnu.org/gnu/automake/automake-1.14.1.tar.gz tar -xf automake-1.14.1.tar.gz cd automake-1.14.1 ./bootstrap.sh
以上步骤执行完成后,会生成 configure 可执行文件
./configure make make install
安装完成后,执行以下命令验证版本
$ automake --version automake (GNU automake) 1.14.1 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey <tromey@redhat.com> and Alexandre Duret-Lutz <adl@gnu.org>.
makeinfo
编译安装软件报错
makeinfo: command not found
makeinfo 命令不存在,执行以下命令安装
yum install texinfo
gcc
no acceptable C compiler found in $PATH
缺少 gcc 编译器,安装即可
yum install -y gcc
A compiler with support for C++11 language features is required
编译安装软件时报错
configure: error: *** A compiler with support for C++11 language features is required.
$ ./configure --prefix=/usr/local/ checking for C++ compiler vendor... gnu checking for C++ compiler version... 4.8.5 configure: error: GCC v. 4.9 is required $ /usr/local/gcc-8.3.0/bin/gcc --version gcc (GCC) 8.3.0
为了解决此问题,可以在执行 ./configure 时指定编译器的位置,分别可以使用环境变量 CC=/path/to/gcc 和 CXX=/usr/local/gcc-8.3.0/bin/g++ 指定 C 和 C++ 编译器的具体路径。
$ /usr/local/openssl/bin/openssl version /usr/local/openssl/bin/openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
$ /usr/local/openssl/bin/openssl version OpenSSL 1.1.1 11 Sep 2018
如果旧版本不再使用,执行以下命令使用新的 openssl 版本
$ openssl version OpenSSL 1.0.2k-fips 26 Jan 2017 $ which openssl /usr/bin/openssl $ mv /usr/bin/openssl{,.1.0.2k-fips.bak} $ ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl $ openssl version OpenSSL 1.1.1 11 Sep 2018
make
Something went wrong bootstrapping makefile fragments
源码编译安装软件包,执行 ./configure 报错
config.status: error: Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE="gmake" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See `config.log' for more details