Just don't try to build it from source haha. Compiling Postgres 18 with the PostGIS extension has been such a PITA because the topology component won't configure to not use the system /usr/bin/postgres and has given me a lot of grief. Finally got it fixed I think though.
I actually always build PostgreSQL from source as I want 32kb block size as default. It makes ZFS compression more awesome.