CentOS7.6源码编译安装PostgreSQL
以阿里云CentOS7.6为例
1、环境准备:
解决:configure:error:readline library not found
yum install readline-dev
解决:configure: error: zlib library not found
yum install zlib-devel
2、取包解压:
tar xjvf postgresql*.bz2 #解压至一个目录
3、编译安装
./configure --prefix=/opt/pg12
make && make install
但行好事,莫问前程