Trouble installing postix on system with MySQL

Issues related to applications and software problems
Post Reply
Ben_PDX
Posts: 2
Joined: 2014/10/22 20:42:29

Trouble installing postix on system with MySQL

Post by Ben_PDX » 2014/10/22 21:31:44

I am trying to install postfix on a CentOS 7 system that already has MySQL 5.6 installed. The postfix installation process needs to install libmysqlclient.so.18 as a dependency. In order to get this dependency, yum is trying to install mariadb-libs, but is being prevented from doing so because it is not allowed by MySQL-shared-compat:

Code: Select all

--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.37-1.el7_0 will be installed
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.35-3.el7 will be installed
Removing mariadb-libs.x86_64 1:5.5.35-3.el7 - u due to obsoletes from installed MySQL-shared-compat-5.6.20-1.el7.x86_64
--> Restarting Dependency Resolution with new changes.
If we don't want to replace MySQL with MariaDB (or damage the MySQL installation), what can I do to get postfix installed?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Trouble installing postix on system with MySQL

Post by TrevorH » 2014/10/22 21:47:26

You don't. This is why we support only packages supplied by CentOS. CentOS's postfix works perfectly with the supplied mariadb. You'll have to ask the people that supplied your MySQL 5.6 why it doesn't work with other CentOS packages,
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rich_PDX
Posts: 1
Joined: 2014/11/06 19:58:57

Re: Trouble installing postix on system with MySQL

Post by rich_PDX » 2014/11/06 20:07:55

if you are using rpms for rpm bundle, dont forget to install MySQL-shared. This worked for me:

Code: Select all

bash> sudo wget http://ftp.kaist.ac.kr/mysql/Downloads/MySQL-5.6/MySQL-5.6.21-1.el7.x86_64.rpm-bundle.tar
bash> sudo tar -xvf MySQL-5.6.21-1.el7.x86_64.rpm-bundle.tar
sudo yum localinstall MySQL-shared-compat-5.6.21-1.el7.x86_64.rpm MySQL-shared-5.6.21-1.el7.x86_64.rpm MySQL-server-5.6.21-1.el7.x86_64.rpm MySQL-devel-5.6.21-1.el7.x86_64.rpm MySQL-client-5.6.21-1.el7.x86_64.rpm
Upon that yum should get something:

Code: Select all

Dependency Installed:
  mysql-community-common.x86_64 0:5.6.21-2.el7                                                                                                                            

Replaced:
  mariadb-libs.x86_64 1:5.5.37-1.el7_0          
which would replace the mariadb lib that postfix wants w/ mysql-common which wont affect the installation of postfix.

Post Reply