代码之家  ›  专栏  ›  技术社区  ›  jww avp

Autorreconf和“错误:可能未定义宏:AM\U NLS”

  •  -1
  • jww avp  · 技术社区  · 7 年前

    我正在努力制作一个 configure 脚本 systemd .

    $ 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\U NLS” Linphone configuration results in multiple undefined Autotools macros ,但我不太清楚我应该做什么。Unix&Linux Stack Exchange已 Some M4 macros don't seem to be defined

    1 回复  |  直到 6 年前
        1
  •  3
  •   ldav1s    7 年前

    GNU gettext ,特别是Fedora 25 gettext-devel .它在 /usr/share/aclocal/nls.m4 包含在那个包裹里。您应该能够安装该软件包并生成。