警告:在库中找不到宏“AM_GLIB_GNU_GETTEXT”

glo*_*tla 2 compiling git audio software-installation

我正在尝试通过 git安装soundconverter。这就是我在终端中所做的:

$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get install git
$ git clone https://github.com/kassoulet/soundconverter.git
$ cd soundconverter 
$ ./autogen.sh
Run Code Online (Sandbox Code Playgroud)

这是运行的输出 /home/USERNAME/soundconverter/autogen.sh

*** WARNING: I am going to run 'configure' with no arguments.
*** If you wish to pass any to it, please specify them on the
*** './autogen.sh' command line.

configure.ac:22: warning: macro 'AM_GLIB_GNU_GETTEXT' not found in library
aclocal: installing 'm4/intltool.m4' from '/usr/share/aclocal/intltool.m4'
aclocal: installing 'm4/nls.m4' from '/usr/share/aclocal/nls.m4'
./autogen.sh: 27: ./autogen.sh: glib-gettextize: not found
Run Code Online (Sandbox Code Playgroud)

slm*_*slm 10

研究丢失的包裹

正如您所了解的那样,这是您的问题:

configure.ac:22: warning: macro 'AM_GLIB_GNU_GETTEXT' not found in library
aclocal: installing 'm4/intltool.m4' from '/usr/share/aclocal/intltool.m4'
aclocal: installing 'm4/nls.m4' from '/usr/share/aclocal/nls.m4'
./autogen.sh: 27: ./autogen.sh: glib-gettextize: not found
Run Code Online (Sandbox Code Playgroud)

此消息告诉您缺少一个库。这个库的内部逻辑名称是这样的:AM_GLIB_GNU_GETTEXT

搜索它会引导您找到许多类似这样的主题:

易于

在我们开始查找之前,让我们确保我们的apt-file缓存已更新:

$ sudo apt-file update
Run Code Online (Sandbox Code Playgroud)

现在让我们看看 APT 对此有何看法:

$ apt-file search glib-gettextize
libglib2.0-dev: /usr/bin/glib-gettextize
libglib2.0-dev: /usr/share/man/man1/glib-gettextize.1.gz
libglib2.0-doc: /usr/share/doc/libglib2.0-doc/glib/glib-gettextize.html
Run Code Online (Sandbox Code Playgroud)

很好,所以包的名称是libglib2.0-dev. 这与我们之前的 Google 搜索返回的内容一致。

我们可以查看这个包,看看它是否有.m4我们似乎缺少的文件:

$ apt-file list libglib2.0-dev | grep '.m4$'
libglib2.0-dev: /usr/share/aclocal/glib-2.0.m4
libglib2.0-dev: /usr/share/aclocal/glib-gettext.m4
libglib2.0-dev: /usr/share/aclocal/gsettings.m4
Run Code Online (Sandbox Code Playgroud)

很好,所以有一个.m4宏文件正是configure要找的。所以让我们安装它:

$ sudo apt-get install -y libglib2.0-dev
Run Code Online (Sandbox Code Playgroud)

注意:安装后,您可以使用dpkg以下命令查询已安装的软件包:

$ dpkg-query -L libglib2.0-dev | grep m4
/usr/share/aclocal/glib-2.0.m4
/usr/share/aclocal/gsettings.m4
/usr/share/aclocal/glib-gettext.m4
Run Code Online (Sandbox Code Playgroud)

参考