Could not fetch URL https://pypi.python.org/simple/conan/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765) - skipping
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765) - skipping Could not find a version that satisfies the requirement pip (from versions: ) No matching distribution found for pip
checking for xsltCleanupGlobals in -lxslt... no configure: error: library 'xslt' is required for XSLT support
解决方式
1
yum install libxslt libxslt-devel
could not read symbols: Invalid operation
1 2 3 4 5 6 7 8 9
/bin/ld: libpq/SUBSYS.o: undefined reference to symbol 'gss_delete_sec_context@@gssapi_krb5_2_MIT' /bin/ld: note: 'gss_delete_sec_context@@gssapi_krb5_2_MIT' is defined in DSO /lib64/libgssapi_krb5.so.2 so try adding it to the linker command line /lib64/libgssapi_krb5.so.2: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [postgres] Error 1 make[2]: Leaving directory `/home/greenplum/src/backend' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/greenplum/src' make: *** [all] Error 2
cat /etc/ld.so.conf include ld.so.conf.d/*.conf /usr/local/lib /usr/local/lib64
# 修改完成后,运行 ldconfig 命令
could not determine flags for linking embedded Perl
错误信息
1 2 3 4 5
checking for flags to link embedded Perl... Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .). BEGIN failed--compilation aborted. no configure: error: could not determine flags for linking embedded Perl. This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not installed.
解决办法
1
yum install perl-ExtUtils-Embed -y
library ‘xml2’ (version >= 2.6.23) is required for XML support
错误信息
1 2
checking for xmlSaveToBuffer in -lxml2... no configure: error: library 'xml2' (version >= 2.6.23) is required for XML support
解决方式
1
yum install libxml2 libxml2-devel -y
Your ORCA version is expected to be 2.51.XXX
错误信息
1
checking Checking ORCA version... configure: error: Your ORCA version is expected to be 2.51.XXX
解决方式
这说明你装的orca的版本是不匹配的,需要安装匹配版本,那么如何在安装前知道需要什么版本,
1 2 3 4 5 6 7 8
# 执行如下命令: cd /home/gpdb_src/depends cat conanfile_orca.txt
could not find function ‘gss_init_sec_context’ required for GSSAPI
错误信息
1 2 3
checking for library containing gss_init_sec_context... no configure: error: could not find function'gss_init_sec_context' required for GSSAPI # 如果使用编译参数:--with-gssapi可能会报该错误信息
解决方式
1 2
# 安装gssapi pip install gssapi
安装 gssapi 可能报如下错误:
1 2 3 4 5 6 7 8 9 10
Complete output from command python setup.py egg_info: In distributed package, building from C files... Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-CHeKis/gssapi/setup.py", line 98, in <module> raise Exception("Could not find main GSSAPI shared library. Please " Exception: Could not find main GSSAPI shared library. Please try setting GSSAPI_MAIN_LIB yourself or setting ENABLE_SUPPORT_DETECTION to 'false'
---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-CHeKis/gssapi/
解决方式
1
yum install -y krb5-devel.x86_64
apr-1-config is required for gpfdist, unable to find binary
错误信息
1 2
checking for apr-1-config... no configure: error: apr-1-config is required for gpfdist, unable to find binary
解决方式
1
yum install -y apr-devel
libevent is required for gpfdist
错误信息
1 2
checking for library containing event_add... no configure: error: libevent is required for gpfdist
解决方式
1
yum install -y libevent-devel
Library requirements (curl) not met.
错误信息
1 2 3 4 5
checking for curl-config... no *** The curl-config script could not be found. Make sure it is *** in your path, and that curl is properly installed. *** Or see http://curl.haxx.se/ configure: error: Library requirements (curl) not met.
解决方式
1
yum install -y libcurl-devel.x86_64
header file <bzlib.h> is required for bzip2 support
错误信息
1 2
checking for bzlib.h... no configure: error: header file <bzlib.h> is required for bzip2 support
解决方式
1
yum install -y bzip2-devel
psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory
安装psutil时可能报如下错误:
1 2 3 4 5 6 7 8
psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated. error: command'gcc' failed with exit status 1
*** ERROR: `bison' is missing on your system. It is needed to create the file `gram.c'. You can either get bison from a GNU mirror site or download an official distribution of PostgreSQL, which contains pre-packaged bison output. *** make[3]: *** [gram.c] Error 1 make[3]: Leaving directory `/home/gpdb_src/gpdb-5.16.0/src/backend/parser' make[2]: *** [parser/gram.h] Error 2 make[2]: *** Waiting for unfinished jobs.... AWK='gawk' /bin/sh Gen_fmgrtab.sh pg_proc_combined.h.tmp make[3]: Leaving directory `/home/gpdb_src/gpdb-5.16.0/src/backend/utils' make[2]: Leaving directory `/home/gpdb_src/gpdb-5.16.0/src/backend' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/gpdb_src/gpdb-5.16.0/src' make: *** [all] Error 2
解决方式
1 2 3 4 5
# 同样的flex也可能出现类似问题,解决稍微麻烦一点
yum install -y bison.x86_64 bison-devel.x86_64
#之后需要make clean,重新执行安装流程
openssl/hmac.h: No such file or directory
错误信息
1 2 3 4 5 6 7
In file included from include/reader.h:4:0, from include/gpreader.h:4, from src/gpreader.cpp:1: include/s3common_headers.h:8:26: fatal error: openssl/hmac.h: No such file or directory #include <openssl/hmac.h> ^ compilation terminated.