首先,解压pg10压缩包:
tar -zxvf pg10.tar.gz
configure 安装(这里写了一个安装脚本shell,pg_con.sh ),
执行pg_con.sh 详情请移步:https://blog.csdn.net/liguangxianbin/article/details/79699132
一键安装所需软件包脚本:
install.sh
#!/bin/bash
yum install bison \
flex \
readline-devel \
zlib-devel \
openssl-devel \
libxml2-devel \
libxslt-devel \
uuid-devel \
openldap-devel \
python-devel \
krb5-devel \
tcl-devel \
pam-devel \
gettext-devel \
gcc-c++ \
gtk2-devel \
automake \
gettext\
perl-ExtUtils-Embed \
出现问题1:
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the pro