Bug #90712 error: Failed dependencies: pkgconfig(openssl) is needed by mysql-community-dev

Submitted: 2 May 2018 6:33 Modified: 2 May 2018 7:41
Reporter: Shiv Iyer Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:mysql Ver 8.0.11 for Linux on x86_64 (M OS:CentOS (CentOS Linux release 7.3.1611 (Core))
Assigned to: CPU Architecture:Any

[2 May 2018 6:33] Shiv Iyer
Description:
I am trying to install "mysql-community-devel-8.0.11-1.el7.x86_64.rpm" on mysql  Ver 8.0.11 for Linux on x86_64 (MySQL Community Server - GPL) / CentOS Linux release 7.3.1611 (Core)and getting the error below:

warning: mysql-community-devel-8.0.11-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
	pkgconfig(openssl) is needed by mysql-community-devel-8.0.11-1.el7.x86_64

How to repeat:
 [root@localhost mysql8]# rpm -ivh mysql-community-devel-8.0.11-1.el7.x86_64.rpm 
warning: mysql-community-devel-8.0.11-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
	pkgconfig(openssl) is needed by mysql-community-devel-8.0.11-1.el7.x86_64
[root@localhost mysql8]# rpm -qa | grep openssl
openssl098e-0.9.8e-29.el7.centos.3.x86_64
openssl-libs-1.0.2k-8.el7.x86_64
openssl-1.0.2k-8.el7.x86_64

Suggested fix:
I presume "mysql-community-devel-8.0.11-1.el7.x86_64.rpm" is not bundled with "pkgconfig(openssl) is needed by mysql-community-devel-8.0.11-1.el7.x86_64" .Later when I did: 

[root@localhost mysql8]# yum install mysql-community-devel-8.0.11-1.el7.x86_64.rpm
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Examining mysql-community-devel-8.0.11-1.el7.x86_64.rpm: mysql-community-devel-8.0.11-1.el7.x86_64
Marking mysql-community-devel-8.0.11-1.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-devel.x86_64 0:8.0.11-1.el7 will be installed
--> Processing Dependency: pkgconfig(openssl) for package: mysql-community-devel-8.0.11-1.el7.x86_64
Loading mirror speeds from cached hostfile

..........

......

Installed:
  mysql-community-devel.x86_64 0:8.0.11-1.el7                                                                                          

Dependency Installed:
  keyutils-libs-devel.x86_64 0:1.5.8-3.el7      krb5-devel.x86_64 0:1.15.1-8.el7          libcom_err-devel.x86_64 0:1.42.9-10.el7     
  libkadm5.x86_64 0:1.15.1-8.el7                libselinux-devel.x86_64 0:2.5-11.el7      libsepol-devel.x86_64 0:2.5-6.el7           
  libverto-devel.x86_64 0:0.2.5-4.el7           openssl-devel.x86_64 1:1.0.2k-8.el7       pcre-devel.x86_64 0:8.32-17.el7             
  zlib-devel.x86_64 0:1.2.7-17.el7             

Dependency Updated:
  e2fsprogs.x86_64 0:1.42.9-10.el7            e2fsprogs-libs.x86_64 0:1.42.9-10.el7        krb5-libs.x86_64 0:1.15.1-8.el7             
  libcom_err.x86_64 0:1.42.9-10.el7           libselinux.x86_64 0:2.5-11.el7               libselinux-python.x86_64 0:2.5-11.el7       
  libselinux-utils.x86_64 0:2.5-11.el7        libss.x86_64 0:1.42.9-10.el7                 pcre.x86_64 0:8.32-17.el7                   

Complete!
[2 May 2018 7:41] Terje Røsten
Hi!

Thanks for your report!

Dependency pkgconfig(openssl) is provided by package openssl-devel:

$ rpm -q --provides openssl-devel | grep openssl | grep pkgconfig
pkgconfig(openssl) = 1.0.2k
pkgconfig(openssl) = 1.0.2k

If you are using low level rpm commands like 

$ rpm -ivh mysql-community-devel-8.0.11-1.el7.x86_64.rpm 

directly and not high level package management tool like yum you have
to install all required packages by hand before installing MySQL packages.

Note: rpm supports a rich set of dependencies, not just package names.
For example rpm supports dependencies like:

 pkgconfig(foo)
 perl(Bar::baz)
 /usr/bin/spam
 libeggs.so.10(EGGS.1.0)

When using rpm (and not yum) you have process and track all this information
yourself, this is of course error prone and not recommended.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.064 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.