安装MariaDB 10.1时出现依赖性错误

时间:2016-06-29 13:16:47

标签: c++ boost mariadb

我试图安装MariaDB 10.1并收到以下错误:

错误:包:galera-25.3.15-1.rhel7.el7.centos.x86_64(mariadb)            需要:libboost_program_options.so.1.53.0()(64bit)

完整输出是:

$: yum install MariaDB-server MariaDB-client
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * extras: mirror.us.oneandone.net
 * updates: repos.dfw.quadranet.com
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.1.14-1.el7.centos will be installed
--> Processing Dependency: MariaDB-common for package: MariaDB-client-10.1.14-1.el7.centos.x86_64
---> Package MariaDB-server.x86_64 0:10.1.14-1.el7.centos will be installed
--> Processing Dependency: galera for package: MariaDB-server-10.1.14-1.el7.centos.x86_64
--> Processing Dependency: libjemalloc.so.1()(64bit) for package: MariaDB-server-10.1.14-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-common.x86_64 0:10.1.14-1.el7.centos will be installed
---> Package galera.x86_64 0:25.3.15-1.rhel7.el7.centos will be installed
--> Processing Dependency: libboost_program_options.so.1.53.0()(64bit) for package: galera-25.3.15-1.rhel7.el7.centos.x86_64
---> Package jemalloc.x86_64 0:3.6.0-1.el7 will be installed
--> Finished Dependency Resolution
Error: Package: galera-25.3.15-1.rhel7.el7.centos.x86_64 (mariadb)
           Requires: libboost_program_options.so.1.53.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我在/ usr / local / bin / boostlibs / lib中安装了这个Boost库:

$: yum install MariaDB-server MariaDB-client
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * extras: mirror.us.oneandone.net
 * updates: repos.dfw.quadranet.com
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.1.14-1.el7.centos will be installed
--> Processing Dependency: MariaDB-common for package: MariaDB-client-10.1.14-1.el7.centos.x86_64
---> Package MariaDB-server.x86_64 0:10.1.14-1.el7.centos will be installed
--> Processing Dependency: galera for package: MariaDB-server-10.1.14-1.el7.centos.x86_64
--> Processing Dependency: libjemalloc.so.1()(64bit) for package: MariaDB-server-10.1.14-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-common.x86_64 0:10.1.14-1.el7.centos will be installed
---> Package galera.x86_64 0:25.3.15-1.rhel7.el7.centos will be installed
--> Processing Dependency: libboost_program_options.so.1.53.0()(64bit) for package: galera-25.3.15-1.rhel7.el7.centos.x86_64
---> Package jemalloc.x86_64 0:3.6.0-1.el7 will be installed
--> Finished Dependency Resolution
Error: Package: galera-25.3.15-1.rhel7.el7.centos.x86_64 (mariadb)
           Requires: libboost_program_options.so.1.53.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我已将此目录添加到LD_LIBRARY_PATH,但未能成功解决此问题:



$: locate libboost | grep program
/usr/local/bin/boost_1_53_0/bin.v2/libs/program_options/build/gcc-4.8.3/release/link-static/threading-multi/libboost_program_options.a
/usr/local/bin/boost_1_53_0/bin.v2/libs/program_options/build/gcc-4.8.3/release/threading-multi/libboost_program_options.so.1.53.0
/usr/local/bin/boost_1_53_0/stage/lib/libboost_program_options.a
/usr/local/bin/boost_1_53_0/stage/lib/libboost_program_options.so
/usr/local/bin/boost_1_53_0/stage/lib/libboost_program_options.so.1.53.0
/usr/local/bin/boostlibs/lib/libboost_program_options.a
/usr/local/bin/boostlibs/lib/libboost_program_options.so
/usr/local/bin/boostlibs/lib/libboost_program_options.so.1.53.0




我最终需要galera,所以我需要解决这个问题。任何建议(工作)将不胜感激。

2 个答案:

答案 0 :(得分:0)

boost-1.53​​是RHEL 7 / CentOS 7的默认版本:#yum install boost-devel.x86_64

概述http://mirror.centos.org/centos/7.2.1511/os/x86_64/Packages/

答案 1 :(得分:0)

我也遇到了这个问题。但是原因是我安装了32位版本的libboost_program_options.so.1.53.0 rpm,而所需的是64位。

安装64位后,上帝解决了,Mariadb安装成功。