如何获得最新的自动制作?


8

这与/ubuntu/453660/warning-automake-1-11-is-probably-too-old非常相似

在Ubuntu 12.04 LTS上,我收到以下错误消息:

WARNING: 'automake-1.14' is missing on your system.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'automake' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
make: *** [../Makefile.in] Error 1

我试图用来apt-get安装最新的自动制作软件,但是它声称我已经是最新的了。我拥有的自动制作版本为1.11,因此显然我不是最新的。我确实希望继续automake1.11使用该系统,所以我不会破坏任何依赖它的东西。

如何获取最新版本,以便克服此错误?

Answers:



9

采用

sudo apt-get autoremove automake
sudo apt-get install automake

这应该将您带到1.14.1版本,这是我的系统14.04的结果。


1
我没有提到要保留现有版本,automake1.11以便不破坏当前依赖于该特定版本的任何内容。我编辑的问题
SG

0

如果问题仍然存在,则可以从git或此处使用此脚本

#!/bin/bash


# run as root only
if [[ $EUID -ne 0 ]] ; then
    echo -e "\e[1;39m[   \e[31mError\e[39m   ] need root access to run this script\e[0;39m"
    exit 1
fi

function install_automake() {
    [ $# -eq 0 ] && { run_error "Usage: install_automake <version>"; exit; }
    local VERSION=${1}
    wget ftp://ftp.gnu.org/gnu/automake/automake-${VERSION}.tar.gz &> /dev/null
    if [ -f "automake-${VERSION}.tar.gz" ]; then
            tar -xzf automake-${VERSION}.tar.gz
            cd automake-${VERSION}/
            ./configure
            make && make install
            echo -e "\e[1;39m[   \e[1;32mOK\e[39m   ] automake-${VERSION} installed\e[0;39m"

        else
            echo -e "\e[1;39m[   \e[31mError\e[39m   ] cannot fetch file from ftp://ftp.gnu.org/gnu/automake/ \e[0;39m"
            exit 1
    fi
}
install_automake 1.15
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.