Postgresql with-openssl 异常

关于Postgresql 添加编译选项–with-openssl 编译报错. 等一些列问题.
是因为openssl 版本不正常。 其中增删了某些接口函数.
本身使用OpenSSL 1.0.1e 11 Feb 2013 编译报错.

关于postgresql针对openssl的需求. 可在Postgresql源码中找到部分描述configure


后升级openssl 版本为

1
OpenSSL 1.0.2k  26 Jan 2017

编译正常.
openssh 下载地址为 https://ftp.openssl.org/source
其中openssl-1.0.2k 下载地址为 https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2k.tar.gz


err 1:

编译过程如报错:

1
2
3
4
5
6
7
cms.pod around line 457: Expected text after =item, not a number
cms.pod around line 461: Expected text after =item, not a number
cms.pod around line 465: Expected text after =item, not a number
cms.pod around line 470: Expected text after =item, not a number
cms.pod around line 474: Expected text after =item, not a number
POD document had syntax errors at /usr/bin/pod2man line 69.
make: *** [install_docs] Error 1

解决办法:

1
rm -f /usr/bin/pod2man

err 2:

openssl:报错:

1
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

解决办法:

1
2
ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
欣赏此文? 求鼓励,求支持!