I'm having dependency problems installing perl-DBD-MySQL.
Server is running on Centos 6.4 and MySQL 5.5.31.
I ran this command
yum install perl-DBD-MySQL
Outputs:
Loaded plugins: fastestmirror, security Loading mirror speeds from
cached hostfile * base: mirror.nl.webzilla.com * extras:
mirror.nl.webzilla.com * updates: mirrors.supportex.net Setting up
Install Process Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package:
perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Finished Dependency Resolution Error: Package: perl-DBD-MySQL-4.013-3.el6.x86_64 (base)
Requires: libmysqlclient.so.16()(64bit) Error: Package: perl-DBD-MySQL-4.013-3.el6.x86_64 (base)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit) You could try using --skip-broken to work around the problem You
could try running: rpm -Va --nofiles --nodigest
I noticed that I have libmysqlclient.so.18, and not libmysqlclient.so.16 on the server.
Any help is appreciated, thanks!
There's a conflict in the instaled modules on your system. Please make sure your system is up-to-date first. Use these commands:
yum upgrade -y
yum install perl-DBD-MySQL
You can fix your problem using the following command:
yum install perl-DBD-MySQL --enablerepo=*
Related
I updated etc/yum.repos.d/CentOS-Base.repo file like that ($release=$releasever -> $release=6).
...
[base]
name=CentOS-$releasever -Base
mirrorlist=http://mirrorlist.centos.org/?release=6$arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch
...
And then updated yum too.
# sudo yum update
(base) [root#host ~]# yum list updates
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
* base: mirrors.cat.pdx.edu
* centos-sclo-rh: repos.lax.layerhost.com
* centos-sclo-sclo: mirrors.cat.pdx.edu
* epel: mirrors.kernel.org
* extras: mirrors.vcea.wsu.edu
* remi-php73: mirror.sjc02.svwh.net
* remi-safe: mirror.sjc02.svwh.net
* updates: sjc.edge.kernel.org
then, I tried to install MySQL but it didn't work correctly.
# yum install mysql-server
...
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-libs-4.8.0-59.el6.x86_64
Package db4 is obsoleted by libdb4, but obsoleting package does not provide for requirements
---> Package sqlite.x86_64 0:3.6.20-1.el6_7.2 will be installed
--> Processing Conflict: libdb4-4.8.30-13.el7.x86_64 conflicts filesystem < 3
--> Finished Dependency Resolution
Error: Package: rpm-4.8.0-59.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: libdb4-utils-4.8.30-13.el7.x86_64 (epel)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libdb4-4.8.30-13.el7.x86_64 (epel)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: iproute-2.6.32-57.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: pam-1.1.1-24.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: rpm-libs-4.8.0-59.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: libdb4 conflicts with filesystem-2.4.30-3.el6.x86_64
Error: Package: cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: 4:perl-5.10.1-144.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
How can I install MySQL on CentOS 6.9. Any version is ok.
Any help is appreciated.
Error: Package: rpm-4.8.0-59.el6.x86_64 (base)
Error: Package: libdb4-utils-4.8.30-13.el7.x86_64 (epel)
You are obviously mixing EL6 and EL7 packages.
Fix your installation by installing the proper EPEL configuration package.
BTW, CentOS 6 is close to its end of life (in November) so I heartily recommend using a more modern version.
I have installed maria db in my centos 7 , But now after uninstalling the maridb with:
yum remove MariaDB-server MariaDB-client
when I install the mysql-devel or mysql or mysql-server it always install maridb.
How can I move back to mysql?
I have also removed the mariadb respository from the list of repositories at:/etc/yum.repos.d
On:
yum install mysql mysql-server mysql-devel
Error log on the cmd:
[root#ONS88 ~]# yum install mysql mysql-server mysql-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.s.uw.edu
* epel: fedora.mirrors.pair.com
* extras: centos.s.uw.edu
* ius: mirror.its.dal.ca
* nux-dextop: mirror.li.nux.ro
* updates: centos.s.uw.edu
Resolving Dependencies
--> Running transaction check
---> Package mariadb101u.x86_64 1:10.1.29-1.ius.centos7 will be installed
--> Processing Dependency: mariadb101u-common(x86-64) = 1:10.1.29-1.ius.centos7 for package: 1:mariadb101u-10.1.29-1.ius.centos7.x86_64
--> Processing Dependency: mariadb101u-libs(x86-64) = 1:10.1.29-1.ius.centos7 for package: 1:mariadb101u-10.1.29-1.ius.centos7.x86_64
---> Package mariadb101u-devel.x86_64 1:10.1.29-1.ius.centos7 will be installed
---> Package mysql-community-server.x86_64 0:5.6.38-2.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.38-2.el7 for package: mysql-community-server-5.6.38-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.38-2.el7.x86_64
--> Running transaction check
---> Package mariadb101u-common.x86_64 1:10.1.29-1.ius.centos7 will be installed
--> Processing Dependency: mariadb101u-config(x86-64) = 1:10.1.29-1.ius.centos7 for package: 1:mariadb101u-common-10.1.29-1.ius.centos7.x86_64
---> Package mariadb101u-libs.x86_64 1:10.1.29-1.ius.centos7 will be installed
---> Package mysql-community-client.x86_64 0:5.6.38-2.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: mysql-community-client-5.6.38-2.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.6.38-2.el7 will be installed
--> Running transaction check
---> Package mariadb101u-config.x86_64 1:10.1.29-1.ius.centos7 will be installed
---> Package mysql-community-libs.x86_64 0:5.6.38-2.el7 will be installed
--> Processing Conflict: 1:mariadb101u-libs-10.1.29-1.ius.centos7.x86_64 conflicts mysql-community-libs
--> Processing Conflict: 1:mariadb101u-10.1.29-1.ius.centos7.x86_64 conflicts mysql-community-client
--> Processing Conflict: 1:mariadb101u-config-10.1.29-1.ius.centos7.x86_64 conflicts mysql-community-server
--> Processing Conflict: 1:mariadb101u-common-10.1.29-1.ius.centos7.x86_64 conflicts mysql-community-common
--> Finished Dependency Resolution
Error: mariadb101u-libs conflicts with mysql-community-libs-5.6.38-2.el7.x86_64
Error: mariadb101u conflicts with mysql-community-client-5.6.38-2.el7.x86_64
Error: mariadb101u-config conflicts with mysql-community-server-5.6.38-2.el7.x86_64
Error: mariadb101u-common conflicts with mysql-community-common-5.6.38-2.el7.x86_64
You could try using --skip-broken to work around the problem
** Found 115 pre-existing rpmdb problem(s), 'yum check' output follows:
ModemManager-1.6.0-2.el7.x86_64 is a duplicate with ModemManager-1.1.0-8.git20130913.el7.x86_64
ModemManager-glib-1.6.0-2.el7.x86_64 is a duplicate with ModemManager-glib-1.1.0-8.git20130913.el7.x86_64
adcli-0.8.1-3.el7.x86_64 is a duplicate with adcli-0.7.5-4.el7.x86_64
alsa-tools-firmware-1.1.0-1.el7.x86_64 is a duplicate with alsa-tools-firmware-1.0.28-2.el7.x86_64
at-3.1.13-22.el7.x86_64 is a duplicate with at-3.1.13-20.el7.x86_64
avahi-0.6.31-17.el7.x86_64 is a duplicate with avahi-0.6.31-15.el7.x86_64
avahi-autoipd-0.6.31-15.el7.x86_64 has installed conflicts avahi > ('0', '0.6.31', '15.el7'): avahi-0.6.31-17.el7.x86_64
avahi-autoipd-0.6.31-17.el7.x86_64 has installed conflicts avahi < ('0', '0.6.31', '17.el7'): avahi-0.6.31-15.el7.x86_64
$ sudo yum install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
$ sudo yum repolist enabled | grep "mysql.*-community.*"
$ sudo systemctl start mysqld
$ sudo systemctl status mysqld
Login in to mysql
$ mysql -u root
Mysql auto-start on boot
$ sudo systemctl enable mysqld.service
link to the complete answer https://dbahire.com/how-to-install-mysql-5-6-on-centos-7/
To set the password while using mysql
mysql_secure_installation
I am trying to install mysql-devel on my CentOS system and it's failing with some weird dependency issue. Here is the result I get when I try to install from the command line.
$ sudo yum install mysql-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.steadfast.net
* epel: epel.mirror.freedomvoice.com
* extras: linux.mirrors.es.net
* updates: ftp.linux.ncsu.edu
Setting up Install Process
...
...
--> Finished Dependency Resolution
Error: Package: mysql-5.1.69-1.el6_4.x86_64 (updates)
Requires: libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.66-2.el6_3.x86_64 (base)
libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.67-1.el6_3.x86_64 (updates)
libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.69-1.el6_4.x86_64 (updates)
libmysqlclient_r.so.16()(64bit)
Installed: mysql-libs-5.5.32-1.el6.remi.x86_64 (#remi)
Not found
Error: Package: mysql-devel-5.1.69-1.el6_4.x86_64 (updates)
Requires: libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.66-2.el6_3.x86_64 (base)
libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.67-1.el6_3.x86_64 (updates)
libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.69-1.el6_4.x86_64 (updates)
libmysqlclient_r.so.16()(64bit)
Installed: mysql-libs-5.5.32-1.el6.remi.x86_64 (#remi)
Not found
Error: Package: mysql-5.1.69-1.el6_4.x86_64 (updates)
Requires: libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
Available: mysql-libs-5.1.66-2.el6_3.x86_64 (base)
libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
Available: mysql-libs-5.1.67-1.el6_3.x86_64 (updates)
libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
Available: mysql-libs-5.1.69-1.el6_4.x86_64 (updates)
libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
Installed: mysql-libs-5.5.32-1.el6.remi.x86_64 (#remi)
Not found
Any ideas on how to address this?
i fixed this by uninstalling and re-installing mysql.
When I try to install MySql Workbench using the yum command :
yum install mysql-workbench-gpl-5.2.45-1fc17.i686.rpm
I get these errors :
Error: Package: mysql-workbench-gpl-5.2.45-1fc17.i686 (/mysql-workbench-gpl-5.2.45-1fc17.i686)
Requires: /bin/python
Error: Package: mysql-workbench-gpl-5.2.45-1fc17.i686 (/mysql-workbench-gpl-5.2.45-1fc17.i686)
Requires: libzip.so.2
Error: Package: mysql-workbench-gpl-5.2.45-1fc17.i686 (/mysql-workbench-gpl-5.2.45-1fc17.i686)
Requires: libctemplate.so.2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
What are these errors and what do I do to install this MySql GUI tool ?
Because you are installing RedHat 6 OS base RPM. You have to upgrade or install required dependencies first. In your case upgrade/install python libzip ctemplate RPM packages.
Notes: libzip/ctemplate isn't part of RedHat 6 OS. You have to download from third party sources.
I saw Trying to install Perl-Mysql DBD, mysql_config can't be found, and tried to locate mysql_config, but didn't find it. So, I tried to install mysql-devel, and then I get this error-
[nbezzala#stats /]$ sudo yum install mysql-devel
[sudo] password for nbezzala:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cmich.edu
* extras: holmes.umflint.edu
* updates: mirror.symnds.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-devel.i386 0:5.0.77-4.el5_6.6 set to be updated
--> Processing Dependency: libmysqlclient.so.15 for package: mysql-devel
--> Processing Dependency: libmysqlclient_r.so.15 for package: mysql-devel
---> Package mysql-devel.x86_64 0:5.0.77-4.el5_6.6 set to be updated
--> Running transaction check
---> Package mysql.i386 0:5.0.77-4.el5_6.6 set to be updated
--> Processing Conflict: mysql conflicts MySQL
--> Finished Dependency Resolution
mysql-5.0.77-4.el5_6.6.i386 from base has depsolving problems
--> mysql conflicts with MySQL-server
Error: mysql conflicts with MySQL-server
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
[nbezzala#stats /]$
I had the same problem and had to install libmysqlclient-dev on my Debian linux.
That mysql_config file was in that package.
mysql v 5.5.17 was installed on the machine, and I was trying to install 5.0.77 components via yum. Thanks Alexandr.