1. Check the extension
Execute ./configure --prefix=/opt/postgresql/pginstalldir/ --with-uuid=e2fs in the source directory of postgresql,
and the result will be the following error
handling method:
Install under usr/local/src: e2fsprogs-devel, libuuid- devel, uuid-devel
rpm -ivh e2fsprogs-devel-1.42.9-19.el7.x86_64.rpm
rpm -ivh libuuid-devel-2.23.2-65.el7.x86_64.rpm
rpm -ivh uuid-devel-1.6. 2-26.el7.x86_64.rpm
If you are connected to the Internet, you can directly use yum to install
yum -y install e2fsprogs-devel
yum -y install libuuid-devel
yum -y install uuid-devel
2. Install the extension
After the extension is installed, it is still executed in the source code folder of postgresql./configure
--prefix=/opt/postgresql/pginstalldir/ --with-uuid=e2fs compile
without error (don't forget)
make
make install
Switch to postgres, log in to the database, view the extension
select * from pg_extension;
view the available extension
select * from pg_available_extensions;
create an extension uuid_ossp
create extension “uuid-ossp”;