Greenplum 6 基于华为openEuler22.03的编译安装和二进制安装
Tags: GreenPlumopenEuler华为安装配置欧拉源码编译
前言
特别注意:
1、据GP中文社区资料,openEuler 20.03 LTS SP1 & SP2 软件仓库中引入 Greenplum 6.17.0 版本,参考:https://cn.greenplum.org/greenplum_openeuler_whitepaper/ ,参考:https://www.xmmup.com/greenplum-6-jiyuopeneuler22-03bianyianzhuangbuzhichi.html
GreenPlum中文社区发布称Greenplum完全兼容欧拉开源操作系统 ,参考:https://cn.greenplum.org/greenplum_openeuler_whitepaper/ ,下载:https://cn.greenplum.org/wp-content/uploads/2022/02/%E5%AE%8C%E5%85%A8%E5%85%BC%E5%AE%B9%E6%AC%A7%E6%8B%89%E5%BC%80%E6%BA%90%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84-HTAP-%E6%95%B0%E6%8D%AE%E5%B9%B3%E5%8F%B0-Greenplum.pdf
但是仓库:https://gitee.com/src-openeuler/gpdb 为空,感觉该项目可能黄了。。。
二进制安装(推荐)
使用二进制安装可以成功!!!
请参考:
https://www.xmmup.com/greenplum-6-danjianzhuang.html
在前边的安装步骤都没问题,到最后执行gpinitsystem
的时候就会报错,命令/usr/local/greenplum-db-6.25.1/bin/postgres -V
会报错,主要是缺失如下4个库文件:
- /usr/lib64/libssl.so.10
- /usr/lib64/libcrypto.so.10
- /usr/lib64/libldap-2.4.so.2
- /usr/lib64/libnsl.so.1
配置不对的话,会报如下的错误:
1 2 3 4 | [gpadmin@mdw ~]$ postgres -V postgres: /lib64/libcrypto.so.10: version `OPENSSL_1.0.1_EC' not found (required by postgres) postgres: /lib64/libcrypto.so.10: version `libcrypto.so.10' not found (required by postgres) postgres: /lib64/libssl.so.10: version `libssl.so.10' not found (required by postgres) |
解决办法:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | -- 二进制安装包使用RHEL8和RHEL7都可以(推荐RHEL8) open-source-greenplum-db-6.25.1-rhel8-x86_64.rpm -- 或者 open-source-greenplum-db-6.25.1-rhel7-x86_64.rpm -- 需要提前安装的包 dnf install -y libnsl apr-devel xerces-c xerces-c-devel libcgroup ln -s /usr/lib64/libldap-2.4.so.2 /usr/lib64/libldap_r-2.4.so.2 ln -s /usr/lib64/libldap.so.2.0.200 /usr/lib64/libldap-2.4.so.2 ln -s /usr/lib64/libreadline.so.8.1 /usr/lib64/libreadline.so.6 ln -s /usr/lib64/libreadline.so.8.1 /usr/lib64/libreadline.so.7 -- 若是安装rhel7版本,则还需要安装如下的包 wget https://rpmfind.net/linux/centos/8-stream/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-4.el8.x86_64.rpm rpm -ivh compat-openssl10-1.0.2o-4.el8.x86_64.rpm |