greenplum的源码安装比较复杂,经常缺少各种包,或者各种报错
主要记录下解决各种问题的过程,安装指南在github上有
网络好的可以直接克隆项目,我是直接下载的ZIP包
git clone https://github.com/greenplum-db/gpdb
解压后进入目录安装依赖
./README.CentOS.bash # 不同的系统执行对应的脚本
cd depends
./configure # 这里会报一个python包pylint版本过低的错,直接pip uninstall pylint再pip install pylint就行
make
make install_local
cd ..
完成后执行
./configure --with-perl --with-python --with-libxml --with-gssapi --prefix=/usr/local/gpdb
这一步会报错,checking Checking ORCA version… configure: error: Your ORCA version is expected to be 2.33.XXX
官方给出的解决办法是 Note: Get the latest ORCA git pull --ff-only
结果还是会报错,然后各种google,百度,安装最新ORCA之类的都无效
发现在解压出的目录下有个config.log的日志文件里面有这样一条报错日志
./conftest: error while loading shared libraries: libgpopt.so.3: cannot open shared object file: No such f ile or directory
libgpopt.so.3这个文件就在/usr/local/src/gpdb-master/depends/build/lib/目录下
把该路径添加到/etc/ld.so.conf
里在ldconfig
一下,重新执行./configure
就成功了
后面根据github上的安装步骤执行,就没有报错了