-1
我正在嘗試爲systemd生成configure
腳本。Autorreconf和「錯誤:可能未定義的宏:AM_NLS」
$ git clone https://github.com/systemd/systemd.git
$ cd systemd
$ autoreconf -i
configure.ac:74: warning: macro 'AM_NLS' not found in library
configure.ac:74: error: possibly undefined macro: AM_NLS
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
我在一個相當現代的機器上完全修補。它的Fedora 25,x86_64的:
$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 25 (Twenty Five)
Release: 25
Codename: TwentyFive
我不是一個自動工具專家,並搜索「錯誤:可能未定義的宏:AM_NLS」是不是對我有用返回命中。我發現Linphone configuration results in multiple undefined Autotools macros,但它不完全清楚我應該做什麼。 Unix & Linux堆棧交換有Some M4 macros don't seem to be defined,但它仍然不清楚我應該爲這個問題做什麼。
有什麼問題,我該如何解決?
非常感謝。誰提出了這些難以理解的錯誤信息?在Autotools工程過程中,他們無法完成的是什麼?*「請安裝gettext或確保它在路徑上」*? – jww
'AM_NLS'不是automake的一部分,所以他們不能直覺需要安裝什麼。也許運行[autogen.sh](https://github.com/systemd/systemd/blob/master/autogen.sh)會給你更多的信息,因爲腳本引導了構建。 – ldav1s