如何在ubuntu14.04中安装aclocal

时间:2016-02-05 10:21:23

标签: amazon-web-services package ubuntu-14.04

当我运行命令显示时,我想在ubuntu 14.04中安装aclocal -I m4

Unable to locate package aclocal

首次安装

sudo apt-get install autotools-dev

然后,

sudo apt-get install aclocal

也有同样的错误。

2 个答案:

答案 0 :(得分:0)

从源代码安装它,可以避免将来编译其他软件时遇到很多麻烦。 aclocal包不存在,它是automake

的一部分
  

sudo apt-get install automake

将安装aclocal 我建议从脚本编译,它将更新到最新版本

#!/bin/bash
VERSION=1.15
    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

答案 1 :(得分:0)

我需要安装以下所有软件包才能运行aclocal

apt install automake
apt install autoconf
apt install m4
apt install perl
apt install libtool

这是我在尝试安装ssdeep时收到的错误消息:

WARNING: 'aclocal-1.13' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' 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/>
Makefile:426: recipe for target 'aclocal.m4' failed
make: *** [aclocal.m4] Error 127
/bin/sh: 1: libtoolize: not found
/usr/bin/m4:aclocal.m4:1069: cannot open `m4/libtool.m4': No such file or directory
/usr/bin/m4:aclocal.m4:1070: cannot open `m4/ltoptions.m4': No such file or directory
/usr/bin/m4:aclocal.m4:1071: cannot open `m4/ltsugar.m4': No such file or directory
/usr/bin/m4:aclocal.m4:1072: cannot open `m4/ltversion.m4': No such file or directory
/usr/bin/m4:aclocal.m4:1073: cannot open `m4/lt~obsolete.m4': No such file or directory
autom4te: /usr/bin/m4 failed with exit status: 1
automake: error: autoconf failed with exit status: 1
Failed while building ssdeep lib with configure and make.
Retry with autoreconf ...
Failed to reconfigure the project build.