1 环境
操作系统: Centos 7.6 (cat /etc/redhat-release)
postgresql版本: 11.4(因为12还是beta版)
2 准备工作
2.1 安装gcc编辑器
[root@localhost postgresql-11.4]# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
Copyright © 2015 Free Software Foundation, Inc.
本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;
包括没有适销性和某一专用目的下的适用性担保。
gcc用于编译源码
2.2 安装make
[root@localhost postgresql-11.4]# make --version
GNU Make 3.82
Built for x86_64-redhat-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
make用于批量编译链接源码,实际干活的还是gcc