GP 源码编译安装
GP源码编译安装
安装依赖
所有机器以 root 权限,在Terminal 中执行下列命令 (需联网执行 yum 下载安装相应包)
需GCC4.8及以上版本
[root@caijw ~]# yum -y install epel-release
[root@caijw ~]# yum -y install python-pip
[root@caijw ~]# yum -y install rsync coreutils glib2 lrzsz sysstat e4fsprogs xfsprogs ntp readline-devel zlib zlib-devel openssl openssl-devel pam-devel libxml2-devel libxslt-devel python-devel tcl-devel gcc make smartmontools flex bison perl perl-devel perl-ExtUtils* OpenIPMI-tools openldap openldap-devel logrotate gcc-c++ python-py
[root@caijw ~]# yum -y install bzip2-devel libevent-devel apr-devel curl-devel ed python-paramiko python-devel
[root@caijw ~]# wget https://bootstrap.pypa.io/get-pip.py
[root@caijw ~]# python get-pip.py
[root@caijw ~]# pip install --upgrade setuptools
[root@caijw ~]# pip install lockfile paramiko setuptools epydoc psi psutil
上传解压
[root@caijw ~]# unzip gpdb-5.28.4.zip
编译安装
[root@caijw ~]# cd gpdb-5.28.4/
[root@caijw ~]# ./configure --prefix=/usr/local/greenplum-5.28.4 --disable-orca --with-gssapi --with-pgport=5432 --with-libedit-preferred --with-perl --with-python --with-openssl --with-pam --with-krb5 --with-ldap --with-libxml --enable-cassert --enable-debug --enable-testutils --enable-debugbreak --enable-depend
[root@caijw ~]# mmake
[root@caijw ~]# make install