安装
1.1.下载PostgreSQL 12安装包
下载地址:https://ftp.postgresql.org/pub/source/
1.2. 安装依赖包
yum install wget gcc gcc-c++ epel-release llvm5.0 llvm5.0-devel clang libicu-devel perl-ExtUtils-Embed readline readline-devel zlib zlib-devel openssl openssl-devel pam-devel libxml2-devel libxslt-devel openldap-devel systemd-devel tcl-devel python-devel -y
# tar -zxvf postgresql-12.0.tar.gz
1.4. 编译安装
到解压出来的目录下
-
# postgresql-12.0]$#./configure --prefix=/usr/local/pgsql/12 --enable-nls --with-python --with-tcl --with-openssl --with-pam --with-ldap --with-systemd --with-libxml --with-libxslt # make && make install # chown -R postgres:postgres /usr/local/pgsql -R
# vi /etc/profile