2

尝试在 CentOS 7 机器上从源代码安装 Banshee (从 Ubuntu 迁移,我想保留我的播放列表和设置)。

./configure结果:

configure: error: Package requirements (mono >= 2.4.3) were not met:

No package 'mono' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MONO_MODULE_CFLAGS
and MONO_MODULE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

哪个单声道

/bin/mono

回声 $PKG_CONFIG_PATH

/usr/local/lib/pkgconfig

但如果我检查 pkgconfig,

哪个 pkgconfig

/usr/bin/which: 没有 pkg​​config 在 (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/斌:/根/斌)

yum 提供 pkgconfig

1:pkgconfig-0.27.1-4.el7.i686 : A tool for determining compilation options
Repo        : base

百胜安装 pkgconfig

Package 1:pkgconfig-0.27.1-4.el7.x86_64 already installed and latest version

去年有人问了一个类似的问题,但没有得到接受的答案。其中一个答案指向一个现在不存在的页面,其中包含一个据称的解决方案。

4

1 回答 1

1

我相信pkg-config它自己工作正常,configure 并没有抱怨这一点。缺少的是monopkg-config 数据库中的条目。确保你有mono.pcin /usr/local/lib/pkgconfig,或者按照说明添加到任何你有这个文件的地方PKG_CONFIG_PATH。在某些 linux 发行版上,开发包需要单独安装,例如libmono-cil-dev在 debian 上。

于 2014-09-08T22:51:26.393 回答