Previously, binary files of Postgres 10 could be downloaded from the site and they worked on any Linux. I need to build binaries for Postgres 15 in the same way so that they work on any distributions.
cd /home/username/postgres-15/build_postgres
../configure --prefix=/home/username/postgres-15/install
make
make install
I tried to build in Ubuntu 16, but it doesn't work in Centos 7. I tried to build in Centos 7 and it worked for Ubuntu 16, but now it doesn't work in Ubuntu 22 (error while loading shared libraries: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory).
Is it possible to make a universal assembly ?