# How to understand "pkgconfig()" error when installing rpm?

**URL:** <https://forums.suse.com/t/how-to-understand-pkgconfig-error-when-installing-rpm/27561>\
**Category:** SLES Install-Boot\
**Created:** [October 25, 2015, 9:21am UTC](https://forums.suse.com/t/how-to-understand-pkgconfig-error-when-installing-rpm/27561 "2015-10-25T09:21:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nanxiao](https://avatars.discourse-cdn.com/v4/letter/n/eb9ed0/32.png) [@nanxiao](https://forums.suse.com/u/nanxiao)\
**Post date:** [October 25, 2015, 9:21am UTC](https://forums.suse.com/t/how-to-understand-pkgconfig-error-when-installing-rpm/27561/1 "2015-10-25T09:21:42Z")

</div>

When I install “polkit-devel” package, it prompts:

linux-051b:/mnt/suse/x86\_64 # rpm -ivh polkit-devel-0.112-2.189.x86\_64.rpm  
error: Failed dependencies:  
pkgconfig(gio-2.0) \>= 2.18 is needed by polkit-devel-0.112-2.189.x86\_64  
pkgconfig(glib-2.0) \>= 2.18 is needed by polkit-devel-0.112-2.189.x86\_64

How to understand “pkgconfig()” error? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 25, 2015, 3:34pm UTC](https://forums.suse.com/t/how-to-understand-pkgconfig-error-when-installing-rpm/27561/2 "2015-10-25T15:34:02Z")

</div>

> [@](#):
>
> On Sun 25 Oct 2015 07:24:01 AM CDT, nanxiao wrote:
> 
> When I install “polkit-devel” package, it prompts:
> 
> linux-051b:/mnt/suse/x86\_64 # rpm -ivh  
> polkit-devel-0.112-2.189.x86\_64.rpm  
> error: Failed dependencies:  
> pkgconfig(gio-2.0) \>= 2.18 is needed by  
> polkit-devel-0.112-2.189.x86\_64  
> pkgconfig(glib-2.0) \>= 2.18 is needed by  
> polkit-devel-0.112-2.189.x86\_64
> 
> How to understand “pkgconfig()” error? Thanks in advance!

Hi  
This is the new form for rpm BuildRequires and Requires via using  
pkg-config. If you use zypper rather than rpm, it will pull in all the  
dependiencies required.

```auto
zypper in polkit-devel

Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 7 NEW packages are going to be installed:
glib2-devel libpcrecpp0 libpcreposix0 libstdc++-devel
libstdc++48-devel pcre-devel polkit-devel
```

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 | GNOME 3.10.1 | 3.12.48-52.27-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!
