如何克服"aclocal-1.15"在您的系统上缺失的问题?警告? [英] How to overcome "'aclocal-1.15' is missing on your system" warning?

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

问题描述

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

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

我有一个Mac,正在尝试在终端中运行它.我想我已经下载了autoconf和automake,但不确定.要运行该程序,我将转到终端中的正确文件夹,然后运行

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 

但是我得到了错误:

警告:系统上缺少'aclocal-1.15'. 仅当您修改了"acinclude.m4"或 'configure.ac'或'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/使:*** [aclocal.m4]错误127

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

我有xcode和g ++以及运行c程序所需的所有东西,但是很明显,我不知道我在做什么.

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.

推荐答案

在运行./configure之前,请尝试运行autoreconf -f -i. autoreconf程序会根据需要自动运行autoheader,aclocal,automake,autopoint和libtoolize.

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

编辑以添加:这通常是由于从Git中签出代码而不是从.zip.tar.gz存档中提取代码引起的.为了在文件更改时触发重建,Git不会保留文件的时间戳,因此configure脚本可能看起来已过时.正如其他人提到的,如果您没有足够新的autoreconf版本,有多种方法可以解决此问题.

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.

另一项该错误也可能是由于将使用scp从存档中提取的源文件夹复制到另一台计算机上引起的.时间戳可以更新,表明需要重新构建.为避免这种情况,请复制存档并将其提取到位.

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天全站免登陆