# Kan niet herbouwen, clang-11 ontbreekt

**URL:** <https://meta.discourse.org/t/cant-rebuild-clang-11-is-missing/294950>\
**Category:** Self-hosting\
**Created:** [10 februari 2024 om 15:36 UTC](https://meta.discourse.org/t/cant-rebuild-clang-11-is-missing/294950 "2024-02-10T15:36:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [10 februari 2024 om 18:26 UTC](https://meta.discourse.org/t/cant-rebuild-clang-11-is-missing/294950/5 "2024-02-10T18:26:16Z")

</div>

Hooks:

```plaintext
## This is to make discourse-chatbot work correctly - 9pfs
## See https://meta.discourse.org/t/discourse-chatbot-now-smarter-than-chatgpt/256652/382?u=hello-smile6 for more info.
    - exec:
        cd: $home
        cmd:
          - sudo apt-get install wget ca-certificates
    - exec:
        cd: $home
        cmd:
          - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
    - exec:
        cd: $home
        cmd:
          - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
    - exec:
        cd: $home
        cmd:
          - apt-get update
    - exec:
        cd: $home
        cmd:
          - apt-get -y install -y postgresql-server-dev-13
    - exec:
        cd: $home/tmp
        cmd:
          - git clone https://github.com/neondatabase/pg_embedding.git
    - exec:
        cd: $home/tmp/pg_embedding
        cmd:
          - make PG_CONFIG=/usr/lib/postgresql/13/bin/pg_config
    - exec:
        cd: $home/tmp/pg_embedding
        cmd:
          - make PG_CONFIG=/usr/lib/postgresql/13/bin/pg_config install
    - exec:
        cd: $home
        cmd:
          - su postgres -c 'psql discourse -c "create extension if not exists embedding;"'

```

Plugins:

```plaintext
          - git clone https://github.com/discourse/docker_manager.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-automation.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-calendar.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-templates.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-assign.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-user-notes.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-data-explorer.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-topic-voting.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-ai.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-login-with-amazon.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-linkedin-auth.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-microsoft-auth.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-docs.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-github.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-solved.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-cakeday.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-reactions.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-gamification.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-affiliate.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-apple-auth.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-akismet.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-rss-polling.git
          #- sudo -E -u discourse git clone https://github.com/discourse/discourse-subscriptions.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-yearly-review.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-math.git
          #- sudo -E -u discourse git clone https://github.com/discourse/discourse-patreon.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-activity-pub.git
          #- git clone https://github.com/discourse/discourse-templates.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-whos-online.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-shared-edits.git
          #- sudo -E -u discourse git clone https://github.com/discourse/discourse-animated-avatars.git

```

After commands:

```plaintext
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  - replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /listen 80;/
     to: |
       listen 80;
       set_real_ip_from 192.168.1.0/16;
  - replace:
     filename: "/etc/nginx/conf.d/discourse.conf"
     from: /listen 443 ssl http2;/
     to: |
       listen 443 ssl http2;
       set_real_ip_from 192.168.1.0/16;
  - exec: echo "End of custom commands"

```

---

_[View the full topic](https://meta.discourse.org/t/cant-rebuild-clang-11-is-missing/294950)._
