由于未安装 gobject-introspection 1,我无法配置 rhythmbox

Sim*_*mon 8 installation rhythmbox gobject

此前我劝如何升级到Rhythmbox音乐播放器到2.99.1版本有人在这里。但是,由于未安装 gobject-introspection-1.0,他们无法升级。我帮不了他们。

现在,有了一台全新的电脑,我遇到了和他们一样的问题。这是结果 ov./configure

simon@simon-TS44HR:~/Downloads/rhythmbox-2.99.1$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gobject-introspection... configure: error: gobject-introspection-1.0 is not installed
Run Code Online (Sandbox Code Playgroud)

我尝试使用以下方法安装 gobject-introspection

simon@simon-TS44HR:~/Downloads/rhythmbox-2.99.1$ sudo apt-get -f install gobject-introspection
[sudo] password for simon: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gobject-introspection is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)

所以我试过:

simon@simon-TS44HR:~/Downloads/rhythmbox-2.99.1$ sudo apt-get -f install gobject-introspection-1.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gobject-introspection-1.0
E: Couldn't find any package by regex 'gobject-introspection-1.0'
Run Code Online (Sandbox Code Playgroud)

我还没有真正掌握正确安装软件,任何帮助将不胜感激。

Ala*_*Ali 14

您需要安装gobject-introspection开发包(库)才能./configure(或pkg-config)看到它。这个包是libgirepository1.0-dev安装 libgirepository1.0-dev. 但是,在我的机器上,安装此软件包后,我一直遇到其他缺少的依赖项的错误,以使编译正常工作。

满足编译 Rhythmbox 的所有要求的最简单方法是执行以下命令:

sudo apt-get build-dep rhythmbox
Run Code Online (Sandbox Code Playgroud)

这将安装编译 Rhythmbox 所需的一堆库和包(在此答案时它需要大约 76 MB)。

完成后,再做./configure一次,它不应该吐出任何错误。继续sudo makesudo make install

安装后,rhythmbox可能无法运行,从终端运行它会给你:

rhythmbox: error while loading shared libraries: librhythmbox-core.so.7: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

要解决此问题,请执行以下操作:

sudo cp /usr/local/lib/librhythmbox-core.so.7 /usr/lib
Run Code Online (Sandbox Code Playgroud)

来源:[Rhythmbox-devel] 2.99.1 安装问题

我刚刚尝试了所有这些,并且奏效了