Issues while setting up openstreet-website for local dev work

I was wondering if anyone has recently tried to setup the openstreetmap-website project locally

While trying to set it up following these instructions I am running into few issues.

  1. When loading PostgreSQL Btree-gist Extension

    ERROR:  unrecognized parameter "trusted" in file "/usr/local/share/postgresql/extension/btree_gist.control"
  1. While installing PostgreSQL Functions

   psql:db/functions/functions.sql:42: ERROR:  could not load library "/usr/local/lib/postgresql/": dlopen(/usr/local/lib/postgresql/, 10): 
   Symbol not found: _CachedPlanAllowsSimpleValidityCheck
  1. When creating db tables by running migrations. I’m guessing this one has to do with (1) above
PG::UndefinedObject: ERROR:  data type integer has no default operator class for access method "gist"
    HINT:  You must specify an operator class for the index or define a default operator class for the data type.

I’m using v13.1 for Postgresql

Would appreciate someone can help me with these so I can get started.

In case if this is not right place to have this discussion, please point me to one. Thank you