From 508a22b5df5a4bd6a06f5dfe4527487ac4f094a3 Mon Sep 17 00:00:00 2001 From: reivilibre Date: Tue, 30 Jul 2024 17:09:14 +0000 Subject: deploy: ed583d9c815520f94a7267e7ef0dbb7977e57189 --- latest/setup/forward_proxy.html | 2 +- latest/setup/installation.html | 42 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 2 deletions(-) (limited to 'latest/setup') diff --git a/latest/setup/forward_proxy.html b/latest/setup/forward_proxy.html index e66e901857..4dd29a201b 100644 --- a/latest/setup/forward_proxy.html +++ b/latest/setup/forward_proxy.html @@ -231,7 +231,7 @@ it is most likely due to the proxy's certificates. To test this, the validation in Synapse can be deactivated.

NOTE: This has an impact on security and is for testing purposes only!

To deactivate the certificate validation, the following setting must be added to -your homserver.yaml.

+your homeserver.yaml.

use_insecure_ssl_client_just_for_testing_do_not_use: true
 
diff --git a/latest/setup/installation.html b/latest/setup/installation.html index 06c9743a31..5fc1f87661 100644 --- a/latest/setup/installation.html +++ b/latest/setup/installation.html @@ -367,7 +367,47 @@ header files for Python C extensions.

libwebp-devel libxml2-devel libxslt-devel libpq-devel \ python3-virtualenv libffi-devel openssl-devel python3-devel \ libicu-devel -sudo dnf groupinstall "Development Tools" +sudo dnf group install "Development Tools" + +
Red Hat Enterprise Linux / Rocky Linux
+

Note: The term "RHEL" below refers to both Red Hat Enterprise Linux and Rocky Linux. The distributions are 1:1 binary compatible.

+

It's recommended to use the latest Python versions.

+

RHEL 8 in particular ships with Python 3.6 by default which is EOL and therefore no longer supported by Synapse. RHEL 9 ship with Python 3.9 which is still supported by the Python core team as of this writing. However, newer Python versions provide significant performance improvements and they're available in official distributions' repositories. Therefore it's recommended to use them.

+

Python 3.11 and 3.12 are available for both RHEL 8 and 9.

+

These commands should be run as root user.

+

RHEL 8

+
# Enable PowerTools repository
+dnf config-manager --set-enabled powertools
+
+

RHEL 9

+
# Enable CodeReady Linux Builder repository
+crb enable
+
+

Install new version of Python. You only need one of these:

+
# Python 3.11
+dnf install python3.11 python3.11-devel
+
+
# Python 3.12
+dnf install python3.12 python3.12-devel
+
+

Finally, install common prerequisites

+
dnf install libicu libicu-devel libpq5 libpq5-devel lz4 pkgconf 
+dnf group install "Development Tools"
+
+
Using venv module instead of virtualenv command
+

It's recommended to use Python venv module directly rather than the virtualenv command.

+ +

Here's an example of creating Python 3.12 virtual environment and installing Synapse from PyPI.

+
mkdir -p ~/synapse
+# To use Python 3.11, simply use the command "python3.11" instead.
+python3.12 -m venv ~/synapse/env
+source ~/synapse/env/bin/activate
+pip install --upgrade pip
+pip install --upgrade setuptools
+pip install matrix-synapse
 
macOS

Installing prerequisites on macOS:

-- cgit 1.5.1