RHEL 6.5, perl-DBD-MySQL not working as libmysqlclient_16 is not provided
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
New
|
Undecided
|
Unassigned | |||
5.6 |
Confirmed
|
Undecided
|
Unassigned | |||
5.7 |
New
|
Undecided
|
Unassigned |
Bug Description
On RHEL 6.5
# cat test.pl
#!/bin/env perl
use DBI;
$dsn = "DBI:mysql:
$dbh = DBI->connect($dsn, 'root', 'root');
# perl test.pl
install_
at (eval 3) line 3
Compilation failed in require at (eval 3) line 3.
Perhaps a required shared library or dll isn't installed where expected
at test.pl line 8
# rpm -ql Percona-
/usr/lib64/
/usr/lib64/
/usr/lib64/
/usr/lib64/
(there are symlinks from /usr/lib64/
# rpm -qV perl-DBD-MySQL
Unsatisfied dependencies for perl-DBD-
# rpm -q --provides Percona-
libmysqlclient.
libmysqlclient.
libperconaserve
libperconaserve
Percona-
Percona-
Percona-
# rpm -qp --provides Percona-
warning: Percona-
MySQL-shared
libmysqlclient.
libmysqlclient.
libmysqlclient.
libmysqlclient.
libmysqlclient.
libmysqlclient_
libmysqlclient_
libmysqlclient_
libmysqlclient_
libmysqlclient_
Percona-
Percona-
the packages from RHEL provide this:
# rpm -qp --provides /opt/repo/
config(mysql-libs) = 5.1.71-1.el6
libmysqlclient.
libmysqlclient.
libmysqlclient_
libmysqlclient_
mysql-libs = 5.1.71-1.el6
mysql-libs(x86-64) = 5.1.71-1.el6
tags: | added: pkg |
Changed in percona-server: | |
status: | Incomplete → New |
[root@centos ~]# cat /etc/*release*
CentOS release 6.5 (Final)
Percona- Server- shared- 51 provides the required libmysqlclient. so.16
[root@centos ~]# rpm -q --provides Percona- Server- shared- 51 XtraDB- shared so.16() (64bit) so.16(libmysqlc lient_16) (64bit) r.so.16( )(64bit) r.so.16( libmysqlclient_ 16)(64bit)
MySQL-shared
Percona-
libmysqlclient.
libmysqlclient.
libmysqlclient_
libmysqlclient_
mysql-libs
mysql-shared
[root@centos ~]# cat test.pl
#!/bin/env perl
use DBI;
$dsn = "DBI:mysql: database= test;host= localhost; port=3306" ;
$dbh = DBI->connect($dsn, 'irfan', 'irfan');
[root@centos ~]# perl test.pl driver( mysql) failed: Can't load '/usr/lib64/ perl5/auto/ DBD/mysql/ mysql.so' for module DBD::mysql: libmysqlclient. so.16: cannot open shared object file: No such file or directory at /usr/lib64/ perl5/DynaLoade r.pm line 200.
install_
at (eval 3) line 3
Compilation failed in require at (eval 3) line 3.
Perhaps a required shared library or dll isn't installed where expected
at test.pl line 6
[root@centos ~]# rpm -qV perl-DBD-MySQL MySQL-4. 013-3.el6. x86_64:
libmysqlclient .so.16( )(64bit) is needed by perl-DBD- MySQL-4. 013-3.el6. x86_64
libmysqlclient .so.16( libmysqlclient_ 16)(64bit) is needed by perl-DBD- MySQL-4. 013-3.el6. x86_64
Unsatisfied dependencies for perl-DBD-
But as soon as i install Percona- Server- shared- 51 it installs libmysqlclient. so.16 and works as expected.
[root@centos ~]# perl test.pl
[root@centos ~]#
When you try to install perl-DBD-MySQL via yum it installs Percona- Server- shared- 51 as dependency.
[root@centos ~]# yum install perl-DBD-MySQL ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= = ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= = Server- shared- 51 x86_64 5.1.73- rel14.12. 624.rhel6 percona- release- x86_64 2.1 M
=======
Package Arch Version Repository Size
=======
Installing:
perl-DBD-MySQL x86_64 4.013-3.el6 base 134 k
Installing for dependencies:
Percona-
perl-DBI x86_64 1.609-4.el6 base 705 k
Transaction Summary ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =
=======
Install 3 Package(s)