我正在尝试通过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
这是运行的输出 /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
当您对此有所了解时,这就是您的问题:
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
此消息告诉您您缺少库。该库使用的内部逻辑名称是:AM_GLIB_GNU_GETTEXT
。
搜索该内容将导致您进入许多类似此线程的线程:
在开始寻找之前,请确保我们的apt-file
缓存已更新:
$ sudo apt-file update
现在,让我们看看有关此的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
很好,因此包裹的名称是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
很好,因此有一个正在寻找的.m4
宏文件configure
。因此,让我们安装它:
$ sudo apt-get install -y libglib2.0-dev
注意:安装后,您可以使用来查询已安装的软件包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
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句