Comments - CentOS 5.x/6.x mysql-lib conflicts and postfix

12 years, 10 months ago Daniel Bartholomew

I'm not able to reproduce this error on CentOS 5. Specifically, there doesn't appear to be a mysql-libs package.

The basic MariaDB packages for CentOS 5 are:

  • MariaDB-client-5.2.9-102.el5.x86_64.rpm
  • MariaDB-server-5.2.9-102.el5.x86_64.rpm
  • MariaDB-shared-5.2.9-102.el5.x86_64.rpm

The version of postfix yum installs when I do "yum install postfix" is postfix-2.3.3-2.3.el5_6.x86_64 so maybe the mysql-libs dependency has something to do with the newer version or with CentOS 6.

Just so I have them written down somewhere, the commands I used to download and install MariaDB were:

wget
  http://ftp.osuosl.org/pub/mariadb/mariadb-5.2.9/kvm-rpm-centos5-amd64/rpms/MariaDB-client-5.2.9-102.el5.x86_64.rpm \
  http://ftp.osuosl.org/pub/mariadb/mariadb-5.2.9/kvm-rpm-centos5-amd64/rpms/MariaDB-server-5.2.9-102.el5.x86_64.rpm \
  http://ftp.osuosl.org/pub/mariadb/mariadb-5.2.9/kvm-rpm-centos5-amd64/rpms/MariaDB-shared-5.2.9-102.el5.x86_64.rpm

sudo rpm -Uvh \
  MariaDB-client-5.2.9-102.el5.x86_64.rpm \
  MariaDB-server-5.2.9-102.el5.x86_64.rpm \
  MariaDB-shared-5.2.9-102.el5.x86_64.rpm

I tried several different scenarios, resetting my virtual machine after each one (e.g. install Postfix first, install MariaDB first, and so on...). I naturally ran into some issues when I attempted to install MariaDB when MySQL was installed, but a simple "yum remove mysql mysql-server" followed by installing MariaDB as above fixed that.

As above, so that I have the error message written down:

[buildbot@vm-centos5-amd64 ~]$ sudo rpm -Uvh MariaDB-shared-5.2.9-102.el5.x86_64.rpm MariaDB-server-5.2.9-102.el5.x86_64.rpm MariaDB-client-5.2.9-102.el5.x86_64.rpm
warning: MariaDB-shared-5.2.9-102.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1bb943db
Preparing...                ########################################### [100%]
        file /etc/my.cnf from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/man/man1/my_print_defaults.1.gz from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/charsets/Index.xml from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/charsets/cp1250.xml from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/charsets/cp1251.xml from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/czech/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/danish/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/dutch/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/english/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/estonian/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/french/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/german/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/greek/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/hungarian/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/italian/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/japanese/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/korean/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/norwegian-ny/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/norwegian/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/polish/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/portuguese/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/romanian/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/russian/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/serbian/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/slovak/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/spanish/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/swedish/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/mysql/ukrainian/errmsg.sys from install of MariaDB-server-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/man/man1/mysql.1.gz from install of MariaDB-client-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/man/man1/mysql_find_rows.1.gz from install of MariaDB-client-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/man/man1/mysql_waitpid.1.gz from install of MariaDB-client-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/man/man1/mysqlaccess.1.gz from install of MariaDB-client-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/man/man1/mysqladmin.1.gz from install of MariaDB-client-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/man/man1/mysqldump.1.gz from install of MariaDB-client-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
        file /usr/share/man/man1/mysqlshow.1.gz from install of MariaDB-client-5.2.9-102.el5.x86_64 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
[buildbot@vm-centos5-amd64 ~]$ 

I'm going to keep looking into it. Let me know if you have any suggestions. My next step will be to create a CentOS 6 VM and try with that. I happened to have a CentOS 5 VM "lying around", so that is what I tried first.

 
12 years, 10 months ago openiduser7

Yes i believe it's CentOS 6.x specific issue.

 
11 years, 2 months ago Dwayne Randle

I was having the same problem and ran

rpm -e --nodeps mysql-libs

This let me install the MariaDB on Centos 6.3.

I found it from the following blog post. http://blog.johannes-beck.name/?p=199

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.