0
点赞
收藏
分享

微信扫一扫

CentOS7.9编译安装Greenplum Database 6.22.0

杨沐涵 2023-10-07 阅读 12

软件地址:

https://github.com/greenplum-db/gpdb/releases/download/6.22.0/6.22.0-src-full.tar.gz

 

前提条件

yum update -y
yum -y install epel-release
yum –y install python-pip
yum install -y lrzsz

 

设置python国内下载源

mkdir -p ~/.pip
vi ~/.pip/pip.conf

添加如下内容

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

 

解压安装

tar -zxvf 6.22.0-src-full.tar.gz
cd gpdb_src
sh README.CentOS.bash
#执行configure
./configure --prefix=/opt/greenplum-db --enable-orca --enable-gpperfmon --with-perl --with-python --with-libxml --enable-mapreduce --with-includes=/usr/local/include/ --with-libraries=/usr/local/lib

 执行configure会出现报错,如下所示

CentOS7.9编译安装Greenplum Database 6.22.0_python

这时候需要安装cmake 和 libsigar

安装cmake

yum install -y cmake
或者
cd cmake-3.11.0
./bootstrap
gmake
gmake install
cmake --version

 安装libsigar

#下载地址:
https://github.com/hyperic/sigar/
cd sigar
mkdir build
cd build
cmake .. && make && make install

 

 继续

yum install -y apr-util*
./configure --prefix=/opt/greenplum-db --enable-orca --enable-gpperfmon --with-perl --with-python --with-libxml --enable-mapreduce --with-includes=/usr/local/include/ --with-libraries=/usr/local/lib
make -j 32
make install

 

 

 



举报

相关推荐

0 条评论