问题描述
我试图在github上运行一个c ++程序。 (可通过以下链接)我有一个mac,并试图在终端中运行它。我想我已经下载了autoconf和automake,但我不确定。要运行程序,我要到终端中正确的文件夹,然后运行
在运行<$ 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 && makeBut I get the error:
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”在您的系统上缺失“编译时警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!