之前我曾建议过某人如何将 Rhythmbox 升级到 2.99.1 版本这里。但是他们无法升级,因为没有安装 gobject-introspection-1.0。我帮不了他们。
现在,有了一台全新的电脑,我遇到了和他们一样的问题。以下是结果./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
我尝试使用以下命令安装 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.
所以我尝试了:
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'
我还没有真正掌握如何正确安装软件,如能得到任何帮助我将不胜感激。
答案1
您需要安装gobject-introspection
开发包(库)才能./configure
看到pkg-config
它。此包是libgirepository1.0-dev。但是,在我的计算机上,安装此包之后,我不断遇到缺少其他依赖项而导致编译无法进行的错误。
满足编译 Rhythmbox 的所有要求的最简单方法是执行以下命令:
sudo apt-get build-dep rhythmbox
这将安装编译 Rhythmbox 所需的一堆库和包(在回答此问题时需要大约 76 MB)。
完成后,./configure
再执行一次,应该不会出现任何错误。继续sudo make
和sudo make install
。
安装后,rhythmbox
可能无法运行,从终端运行它将给你:
rhythmbox: error while loading shared libraries: librhythmbox-core.so.7: cannot open shared object file: No such file or directory
要修复此问题,请执行以下操作:
sudo cp /usr/local/lib/librhythmbox-core.so.7 /usr/lib
来源:[Rhythmbox-devel] 2.99.1 安装问题。
我刚刚尝试了所有这些,并且有效。