如何克服“aclocal-1.15”在您的系统上缺失“编译时警告? [英] How to overcome "'aclocal-1.15' is missing on your system" warning when compiling?

查看:8417
本文介绍了如何克服“aclocal-1.15”在您的系统上缺失“编译时警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在github上运行一个c ++程序。 (可通过以下链接 https://github.com/mortehu/text-classifier



我有一个mac,并试图在终端中运行它。我想我已经下载了autoconf和automake,但我不确定。要运行程序,我要到终端中正确的文件夹,然后运行

  ./ configure&& make 

但是我收到错误信息:


警告:您的系统上缺少'aclocal-1.15'。
如果您修改'configure.ac'包含的'acinclude.m4'或$ b $'configure.ac'或m4文件,您只需要它。
'aclocal'程序是GNU Automake软件包的一部分:
http://www.gnu.org / software / automake
它还需要GNU Autoconf,GNU m4和Perl才能运行:
http://www.gnu.org/software/autoconf
http://www.gnu .org / software / m4 /
http://www.perl.org/ make:** * [aclocal.m4]错误127


我有xcode和g ++以及运行c程序所需的所有东西,显然,我不知道我在做什么。



在上面的链接中运行程序最简单,最简单的方法是什么?我意识到它带有一个自述文件和示例用法,但我无法让它工作。

解决方案 在运行<$ c $之前c> ./configure 尝试运行 autoreconf -f -i 。 autoreconf程序会根据需要自动运行autoheader,aclocal,automake,autopoint和libtoolize。



编辑以添加:这通常是由退出而不是从 .zip .tar.gz 压缩文件中解压缩。为了在文件更改时触发重建,Git不保留文件的时间戳,因此 configure 脚本可能看起来过时了。正如其他人所说,如果没有足够新的版本 autoreconf ,有办法解决这个问题。



另一个编辑:此错误也可能是由于使用scp将从归档文件中提取的源文件夹复制到另一台机器所致。时间戳可以更新,这表明重建是必要的。为避免这种情况,请复制存档并将其提取到位。


Im trying to run a c++ program on github. (available at the following link https://github.com/mortehu/text-classifier)

I have a mac, and am trying to run it in the terminal. I think I have downloaded autoconf and automake but am not sure. To run the program I am going to the correct folder in terminal then running

./configure && make 

But I get the error:

WARNING: 'aclocal-1.15' 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/ make: *** [aclocal.m4] Error 127

I have xcode and g++ and all the things required to run c programs, but as is probably obvious, I have no idea what Im doing.

What is the easiest, simplest way to run the program in the above link? I realise it comes with a readme and example usage but I can not get that to work.

解决方案

Before running ./configure try running autoreconf -f -i. The autoreconf program automatically runs autoheader, aclocal, automake, autopoint and libtoolize as required.

Edit to add: This is usually caused by checking out code from Git instead of extracting it from a .zip or .tar.gz archive. In order to trigger rebuilds when files change, Git does not preserve files' timestamps, so the configure script might appear to be out of date. As others have mentioned, there are ways to get around this if you don't have a sufficiently recent version of autoreconf.

Another edit: This error can also be caused by copying the source folder extracted from an archive with scp to another machine. The timestamps can be updated, suggesting that a rebuild is necessary. To avoid this, copy the archive and extract it in place.

这篇关于如何克服“aclocal-1.15”在您的系统上缺失“编译时警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆