Ubuntu版本:
Ubuntu 20.10(GNU/Linux 5.8.0-53-generic x86_64)
PostgreSQL版本:
13.3
1、下载PostgreSQL源码
下载路径:https://www.postgresql.org/ftp/source/v13.3/
2、Ubuntu环境准备
apt install libreadline-dev
apt-get install build-essential
apt-get install zlib1g.dev
3、解压,进入目录,指定安装路径
./configure --prefix=/usr/local/postgresql
4、编译安装
make && make install
问题1:
configure报错:configure: error: readline library not found
解决:
apt-get install zlib1g.dev