mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
deploy: f144b4c7e9
This commit is contained in:
parent
42bca217cb
commit
6fbec855eb
4 changed files with 8 additions and 10 deletions
|
@ -271,7 +271,6 @@ For more details, see
|
|||
<p>Matrix.org provides Debian/Ubuntu packages of Synapse, for the amd64
|
||||
architecture via <a href="https://packages.matrix.org/debian/">https://packages.matrix.org/debian/</a>.</p>
|
||||
<p>To install the latest release:</p>
|
||||
<p>TODO UPDATE ALL THIS</p>
|
||||
<pre><code class="language-sh">sudo apt install -y lsb-release wget apt-transport-https
|
||||
sudo wget -O /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ $(lsb_release -cs) main" |
|
||||
|
@ -445,7 +444,7 @@ sudo dnf group install "Development Tools"
|
|||
</code></pre>
|
||||
<h5 id="red-hat-enterprise-linux--rocky-linux"><a class="header" href="#red-hat-enterprise-linux--rocky-linux">Red Hat Enterprise Linux / Rocky Linux</a></h5>
|
||||
<p><em>Note: The term "RHEL" below refers to both Red Hat Enterprise Linux and Rocky Linux. The distributions are 1:1 binary compatible.</em></p>
|
||||
<p>It's recommended to use the latest Python versions. </p>
|
||||
<p>It's recommended to use the latest Python versions.</p>
|
||||
<p>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.</p>
|
||||
<p>Python 3.11 and 3.12 are available for both RHEL 8 and 9.</p>
|
||||
<p>These commands should be run as root user.</p>
|
||||
|
@ -465,7 +464,7 @@ dnf install python3.11 python3.11-devel
|
|||
dnf install python3.12 python3.12-devel
|
||||
</code></pre>
|
||||
<p>Finally, install common prerequisites</p>
|
||||
<pre><code class="language-bash">dnf install libicu libicu-devel libpq5 libpq5-devel lz4 pkgconf
|
||||
<pre><code class="language-bash">dnf install libicu libicu-devel libpq5 libpq5-devel lz4 pkgconf
|
||||
dnf group install "Development Tools"
|
||||
</code></pre>
|
||||
<h6 id="using-venv-module-instead-of-virtualenv-command"><a class="header" href="#using-venv-module-instead-of-virtualenv-command">Using venv module instead of virtualenv command</a></h6>
|
||||
|
@ -474,7 +473,7 @@ dnf group install "Development Tools"
|
|||
<li>On RHEL 9, virtualenv is only available on <a href="https://docs.fedoraproject.org/en-US/epel/">EPEL</a>.</li>
|
||||
<li>On RHEL 8, virtualenv is based on Python 3.6. It does not support creating 3.11/3.12 virtual environments.</li>
|
||||
</ul>
|
||||
<p>Here's an example of creating Python 3.12 virtual environment and installing Synapse from PyPI. </p>
|
||||
<p>Here's an example of creating Python 3.12 virtual environment and installing Synapse from PyPI.</p>
|
||||
<pre><code class="language-bash">mkdir -p ~/synapse
|
||||
# To use Python 3.11, simply use the command "python3.11" instead.
|
||||
python3.12 -m venv ~/synapse/env
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -197,7 +197,6 @@ For more details, see
|
|||
<p>Matrix.org provides Debian/Ubuntu packages of Synapse, for the amd64
|
||||
architecture via <a href="https://packages.matrix.org/debian/">https://packages.matrix.org/debian/</a>.</p>
|
||||
<p>To install the latest release:</p>
|
||||
<p>TODO UPDATE ALL THIS</p>
|
||||
<pre><code class="language-sh">sudo apt install -y lsb-release wget apt-transport-https
|
||||
sudo wget -O /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ $(lsb_release -cs) main" |
|
||||
|
@ -371,7 +370,7 @@ sudo dnf group install "Development Tools"
|
|||
</code></pre>
|
||||
<h5 id="red-hat-enterprise-linux--rocky-linux"><a class="header" href="#red-hat-enterprise-linux--rocky-linux">Red Hat Enterprise Linux / Rocky Linux</a></h5>
|
||||
<p><em>Note: The term "RHEL" below refers to both Red Hat Enterprise Linux and Rocky Linux. The distributions are 1:1 binary compatible.</em></p>
|
||||
<p>It's recommended to use the latest Python versions. </p>
|
||||
<p>It's recommended to use the latest Python versions.</p>
|
||||
<p>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.</p>
|
||||
<p>Python 3.11 and 3.12 are available for both RHEL 8 and 9.</p>
|
||||
<p>These commands should be run as root user.</p>
|
||||
|
@ -391,7 +390,7 @@ dnf install python3.11 python3.11-devel
|
|||
dnf install python3.12 python3.12-devel
|
||||
</code></pre>
|
||||
<p>Finally, install common prerequisites</p>
|
||||
<pre><code class="language-bash">dnf install libicu libicu-devel libpq5 libpq5-devel lz4 pkgconf
|
||||
<pre><code class="language-bash">dnf install libicu libicu-devel libpq5 libpq5-devel lz4 pkgconf
|
||||
dnf group install "Development Tools"
|
||||
</code></pre>
|
||||
<h6 id="using-venv-module-instead-of-virtualenv-command"><a class="header" href="#using-venv-module-instead-of-virtualenv-command">Using venv module instead of virtualenv command</a></h6>
|
||||
|
@ -400,7 +399,7 @@ dnf group install "Development Tools"
|
|||
<li>On RHEL 9, virtualenv is only available on <a href="https://docs.fedoraproject.org/en-US/epel/">EPEL</a>.</li>
|
||||
<li>On RHEL 8, virtualenv is based on Python 3.6. It does not support creating 3.11/3.12 virtual environments.</li>
|
||||
</ul>
|
||||
<p>Here's an example of creating Python 3.12 virtual environment and installing Synapse from PyPI. </p>
|
||||
<p>Here's an example of creating Python 3.12 virtual environment and installing Synapse from PyPI.</p>
|
||||
<pre><code class="language-bash">mkdir -p ~/synapse
|
||||
# To use Python 3.11, simply use the command "python3.11" instead.
|
||||
python3.12 -m venv ~/synapse/env
|
||||
|
|
Loading…
Reference in a new issue