From a6a0b1f7a7223a4ee678d9eb0ac2c407ded2ec3f Mon Sep 17 00:00:00 2001 From: zhanggang Date: Tue, 7 Aug 2018 12:25:02 +0800 Subject: [PATCH] Fix some steps of building Greenplum with GPORCA When follow the building guide to build gp in centos7, meet some problems. * Remove pysql from develop-dependencies.txt since it would meet an error "install_script 'pysql_w32_postinst.py' not found in scripts" when execute "pip install pysql". * Use absolute-path to rename cmake3 to cmake. * Run ldconfig after build orca to avoid "configure: error: Your ORCA version is expected to be 2.67.XXX" error Signed-off-by: zhanggang --- README.linux.md | 6 ++++-- python-developer-dependencies.txt | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.linux.md b/README.linux.md index 1c84f4adb0b0..899be7a15111 100644 --- a/README.linux.md +++ b/README.linux.md @@ -9,7 +9,7 @@ - If you want to link cmake3 to cmake, run: ```bash - sudo ln -sf ../../bin/cmake3 /usr/local/bin/cmake + sudo ln -sf /usr/bin/cmake3 /usr/local/bin/cmake ``` - Make sure that you add `/usr/local/lib` and `/usr/local/lib64` to @@ -57,7 +57,9 @@ Use dependency script for CentOS. ## Common Platform Tasks: Make sure that you add `/usr/local/lib` to `/etc/ld.so.conf`, -then run command `ldconfig`. +then run command `ldconfig`. After building the optimizer, run +`ldconfig` again to make sure necessary links and cache have +been created for these shared libraries. 1. ORCA requires [CMake](https://cmake.org) 3.x; make sure you have it installed. Installation instructions vary, please check the CMake website. diff --git a/python-developer-dependencies.txt b/python-developer-dependencies.txt index e6268fff903a..54d626d157a0 100644 --- a/python-developer-dependencies.txt +++ b/python-developer-dependencies.txt @@ -3,7 +3,6 @@ Jinja2==2.10 parse-type==0.4.2 pexpect==4.4.0 PSI==0.3b2 -pysql==0.16 PyYAML==3.12 ptyprocess==0.5.2 -six==1.11.0 \ No newline at end of file +six==1.11.0