Gnome / msitools构建失败,并出现“未找到软件包'libgsf-1'”错误

问题描述 投票:0回答:1

我已经在Centos7主机中克隆了“ https://gitlab.gnome.org/GNOME/msitools/-/tree/v0.100”,并试图进行构建,但是面临以下错误,即使已经安装了必需的软件包,它仍然无法正常工作。

下面是在代码库中尝试使用“ autogen.sh”构建代码时遇到的错误。

错误:

Checking for GSF... no configure: error: Package requirements (libgsf-1) were not met: No package 'libgsf-1' 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 GSF_CFLAGS
and GSF_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

但是问题是我已经安装了[[libgsf rpm]

[meuser@localhost msitools]$ rpm -qa | grep libgsf libgsf-1.14.26-7.el7.x86_64
提前感谢您的帮助!    
gcc windows-installer centos7 gnome msitools
1个回答
0
投票
在另一个软件包之上构建软件时,您应该安装

development软件包,其中将包含必要的内容,例如头文件,pkg-config文件(在此处查找)以及其他。

CentOS / Fedora通常通过添加“ -devel”后缀来表示开发包,这里也是这种情况。因此,您要查找的包是libgsf-devel
© www.soinside.com 2019 - 2024. All rights reserved.