signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.61k stars 1.43k forks source link

mariadb-connector-c-devel: cannot install on CentOS7 #1156

Open sergey-safarov opened 3 years ago

sergey-safarov commented 3 years ago

Describe the bug cannot install mariadb-connector-c-devel on CentOS 7

Transaction check error:
  file /usr/include/mysql/errmsg.h from install of mariadb-connector-c-devel-3.0.10-2.el7.centos.x86_64 conflicts with file from package mariadb-devel-1:5.5.68-1.el7.x86_64
  file /usr/include/mysql/mysql.h from install of mariadb-connector-c-devel-3.0.10-2.el7.centos.x86_64 conflicts with file from package mariadb-devel-1:5.5.68-1.el7.x86_64
  file /usr/include/mysql/mysql_version.h from install of mariadb-connector-c-devel-3.0.10-2.el7.centos.x86_64 conflicts with file from package mariadb-devel-1:5.5.68-1.el7.x86_64
  file /usr/include/mysql/mysqld_error.h from install of mariadb-connector-c-devel-3.0.10-2.el7.centos.x86_64 conflicts with file from package mariadb-devel-1:5.5.68-1.el7.x86_64

To Reproduce

yum install mariadb-devel
yum install mariadb-connector-c-devel

Expected behavior mariadb-connector-c-devel will be installed without error

mjerris commented 3 years ago

is this stuff we package and put in our repo? do you have pr to fix them ?

andywolk commented 3 years ago

Here is where we store the spec file at the moment: https://github.com/freeswitch/mariadb-connector-c-packaging/tree/centos/centos

sergey-safarov commented 3 years ago

I think we need to move this ticket to freeswitch/mariadb-connector-c-packaging project. If this a trick, then I can reopen the ticket in another project. PR is not created at a moment.

sergey-safarov commented 3 years ago

Technically I can port Fedora RPM to CentOS 7. On page please make the search for mariadb-connector-c

andywolk commented 3 years ago

Let's have this issue opened for the reference but create a new one in freeswitch/mariadb-connector-c-packaging

sergey-safarov commented 3 years ago

mariadb-connector-c upgrade won't help here. Reson - on CentOS7 server devel files and client delve files located in same devel package (mariadb-devel). mariadb-connector-c is client devel files. So conflict will be by definition. Just need do not install mariadb-devel on CentOS 7 dist.

Also created PR #1161 to simple build mod_mariadb on CentOS7 dists.

avcodecs commented 3 years ago

mkdir cmbuild cd cmbuild cmake .. -DCMAKE_INSTALL_PREFIX=/opt/freeswitch make -j8;make install