我想从 git 编译并安装 something-for-reddit。
当我使用 ./configure.ac 时,它显示以下错误。
./configure: line 5088: GLIB_GSETTINGS: command not found
./configure: line 5089: syntax error near unexpected token `1.42.0'
./configure: line 5089: `GOBJECT_INTROSPECTION_CHECK(1.42.0)'
当我在 stackoverflow 中搜索时,它显示 GLIB_GSETTINGS 位于 libglib2.0-dev 中,但当我尝试通过
sudo apt-get install libglib2.0
它再次引发以下错误
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libglib2.0-0-refdbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-tests' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-bin' for regex 'libglib2.0'
Note, selecting 'libglib2.0-cil' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dbg' for regex 'libglib2.0'
Note, selecting 'libglib2.0-dev' for regex 'libglib2.0'
Note, selecting 'libglib2.0-doc' for regex 'libglib2.0'
Note, selecting 'libglib2.0-data' for regex 'libglib2.0'
Note, selecting 'libglib2.0-0' for regex 'libglib2.0'
libglib2.0-0 is already the newest version (2.48.1-1~ubuntu16.04.1).
libglib2.0-data is already the newest version (2.48.1-1~ubuntu16.04.1).
libglib2.0-bin is already the newest version (2.48.1-1~ubuntu16.04.1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libglib2.0-0-dbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
libglib2.0-0-refdbg : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
libglib2.0-dev : Depends: libglib2.0-0 (= 2.48.0-1ubuntu4) but 2.48.1-1~ubuntu16.04.1 is to be installed
Depends: libglib2.0-bin (= 2.48.0-1ubuntu4)
一个月前,我将系统从 14.04 升级到了 16.04,我是不是遗漏了什么,或者现在我做错了什么。
reddit git 源的一些内容在这里。https://github.com/samdroid-apps/something-for-reddit您也可以在这里检查所有依赖项,软件包详细信息:something-for-reddit-git 0.1-1。
还发现其他用户也遇到了同样的错误。
编译 gnome 扩展时未找到 GLIB_GSETTINGS
请帮忙
答案1
尝试运行
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libglib2.0-0
这对我有用。