yum은 MySQL 및 MarioaDB와 충돌합니다.

yum은 MySQL 및 MarioaDB와 충돌합니다.

저는 C에서 MUD를 실행하고 있으며 최신 버전의 CentOS(7)에서 컴파일하려고 합니다.

sql.h:1:25: fatal error: mysql/mysql.h: No such file or directory

그래서 MySQL 패키지를 설치하려고했습니다.

[user@server src]$ sudo yum install mysql++-devel

하지만 충돌 오류가 많이 발생합니다.

Resolving Dependencies
--> Running transaction check
---> Package mysql++-devel.x86_64 0:3.1.0-12.el7 will be installed
--> Processing Dependency: mysql-devel(x86-64) for package: mysql++-devel-3.1.0-12.el7.x86_64
--> Running transaction check
---> Package mariadb101u-devel.x86_64 1:10.1.32-1.ius.centos7 will be installed
--> Processing Dependency: mariadb101u-libs(x86-64) = 1:10.1.32-1.ius.centos7 for package: 1:mariadb101u-devel-10.1.32-1.ius.centos7.x86_64
--> Processing Dependency: pkgconfig(openssl) for package: 1:mariadb101u-devel-10.1.32-1.ius.centos7.x86_64
--> Running transaction check
---> Package mariadb101u-libs.x86_64 1:10.1.32-1.ius.centos7 will be installed
--> Processing Dependency: mariadb101u-common(x86-64) = 1:10.1.32-1.ius.centos7 for package: 1:mariadb101u-libs-10.1.32-1.ius.centos7.x86_64
---> Package openssl-devel.x86_64 1:1.0.2k-12.el7 will be installed
--> Processing Dependency: zlib-devel(x86-64) for package: 1:openssl-devel-1.0.2k-12.el7.x86_64
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-12.el7.x86_64
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.15.1-19.el7 will be installed
--> Processing Dependency: libkadm5(x86-64) = 1.15.1-19.el7 for package: krb5-devel-1.15.1-19.el7.x86_64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-19.el7.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-19.el7.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-19.el7.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-19.el7.x86_64
---> Package mariadb101u-common.x86_64 1:10.1.32-1.ius.centos7 will be installed
--> Processing Dependency: mariadb101u-config(x86-64) = 1:10.1.32-1.ius.centos7 for package: 1:mariadb101u-common-10.1.32-1.ius.centos7.x86_64
---> Package zlib-devel.x86_64 0:1.2.7-17.el7 will be installed
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package libcom_err-devel.x86_64 0:1.42.9-12.el7_5 will be installed
---> Package libkadm5.x86_64 0:1.15.1-19.el7 will be installed
---> Package libselinux-devel.x86_64 0:2.5-12.el7 will be installed
--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-6 for package: libselinux-devel-2.5-12.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-12.el7.x86_64
--> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.5-12.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
---> Package mariadb101u-config.x86_64 1:10.1.32-1.ius.centos7 will be installed
--> Running transaction check
---> Package libsepol-devel.x86_64 0:2.5-8.1.el7 will be installed
---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
--> Processing Conflict: 1:mariadb101u-config-10.1.32-1.ius.centos7.x86_64 conflicts mariadb-libs < 1:10.1.32-1.ius.centos7
--> Processing Conflict: 1:mariadb101u-common-10.1.32-1.ius.centos7.x86_64 conflicts mariadb-libs < 1:10.1.32-1.ius.centos7
--> Processing Conflict: 1:mariadb101u-libs-10.1.32-1.ius.centos7.x86_64 conflicts mariadb-libs < 1:10.1.32-1.ius.centos7
--> Finished Dependency Resolution
Error: mariadb101u-common conflicts with 1:mariadb-libs-5.5.56-2.el7.x86_64
Error: mariadb101u-config conflicts with 1:mariadb-libs-5.5.56-2.el7.x86_64
Error: mariadb101u-libs conflicts with 1:mariadb-libs-5.5.56-2.el7.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

손상을 건너뛰어야 합니까, 아니면 mysql C 헤더 파일이 있는지 확인하는 더 좋은 방법이 있습니까?

답변1

MariaDB 웹사이트를 탐색하면 현재 발생한 문제를 해결하는 방법을 보여주는 FAQ를 찾을 수 있습니다. 제가 예상한 대로, 서로 호환되지 않는 여러 개의 RPM을 설치하셨습니다.

FAQ의 제목은 다음과 같습니다.CentOS 7에서 RPM을 통해 MariaDB(버전 10.1.21) 설치

관련 정보