如何在ubuntu14.04中安装aclocal

问题描述 投票:0回答:2

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

首次安装

sudo apt-get install autotools-dev

那么,

sudo apt-get install aclocal

同样的错误也得到。

amazon-web-services package ubuntu-14.04
2个回答
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.

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
© www.soinside.com 2019 - 2024. All rights reserved.