How do I install postfix with MariaDB 10.1? …Or mailserver…?

Issues related to applications and software problems
Post Reply
centdude
Posts: 1
Joined: 2014/08/05 00:02:49

How do I install postfix with MariaDB 10.1? …Or mailserver…?

Post by centdude » 2014/08/05 00:03:41

I'm using CentOS 7 x64. Log: There isn't mariadb-libs for 10.1, not that I'm aware of. There is MariaDB-compat which as I found out seems to provide the same functionality and I have it installed, but it still doesn't work.

End-goal: I'm looking to install a mailserver using as little resources as possible under Centos 7 x64 LEMP + MariaDB 10.1.
postfix x86_64 2:2.10.1-6.el7 base

2.4 M
Installing for dependencies:
mariadb-libs x86_64 1:5.5.37-1.el7_0 updates 752 k

Transaction Summary
================================================== ================================================== ===============
Install 1 Package (+1 Dependent package)

Total size: 3.2 M
Installed size: 17 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
file /etc/my.cnf from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-common-10.1.0-1.el6.x86_64
file /usr/share/mysql/czech/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/danish/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/dutch/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/english/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/estonian/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/french/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/german/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/greek/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/hungarian/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/italian/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/japanese/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/korean/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/norwegian/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/polish/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/portuguese/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/romanian/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/russian/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/serbian/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/slovak/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/spanish/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/swedish/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64
file /usr/share/mysql/ukrainian/errmsg.sys from install of mariadb-libs-1:5.5.37-1.el7_0.x86_64 conflicts with file from package MariaDB-server-10.1.0-1.el6.x86_64

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

Re: How do I install postfix with MariaDB 10.1? …Or mailserv

Post by TrevorH » 2014/08/05 00:45:59

CentOS supplies mariadb 5.5.37 not 10.x. If you install packages from third party repos then you are at the mercy of those third party repos making them compatible with CentOS 7. Yours is not. You need to ask whoever you got mariadb 10 from to make their packages work with CentOS 7 or you need to start rebuilding things like postfix SRPMs against your updated mariadb 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

johanvrmr
Posts: 1
Joined: 2014/08/18 06:00:38

Re: How do I install postfix with MariaDB 10.1? …Or mailserv

Post by johanvrmr » 2014/08/18 06:06:17

Hi,

I will not post it on every site you posted your question (I counted 7+ lol) :) but here is the answer :

- yum remove mariadb-libs
- this will also prompt to remove postfix (don't worry just do it unless you have an install that doesn't have postfix yet)
- open CentOS-base.repo and add
exclude=mariadb* (please note all lowercase as the mariadb from the centos repo is all lowercase this apparently was done on purpose as a 'sloppy' fix
add this exclude entry under [base] and under [updates] of CentOS-base.repo
- create your MariaDB.repo (as per instructions mariadb site)
- yum update
- yum install postfix
this will happen :

postfix x86_64 2:2.10.1-6.el7 base 2.4 M
Installing for dependencies:
MariaDB-common x86_64 10.1.0-1.el6 mariadb 23 k
MariaDB-compat x86_64 10.1.0-1.el6 mariadb 2.7 M
MariaDB-shared x86_64 10.1.0-1.el6 mariadb 1.3 M

see because of the exclude it will go fetch the new libs (from mariadb repo) with there new names under 10.1.x no need to recompile anything or postfix. Problem is since mariadb had itself included in Centos repo with different naming conventions etc..., something seem to behave a little odd. (including dependencies correctly resolved only when removing mariadb form the centos default repo) but anyways all works if you do as above (and yes postfix works normally as intended with the new libs). (probably sloppy implementation of someone but who ? :) )

all works.
regards,

Post Reply