From 2005f622bbb4ec61cc35eac32634c8d1960f2d78 Mon Sep 17 00:00:00 2001 From: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com> Date: Thu, 25 Jan 2024 02:07:58 +0800 Subject: [PATCH] Update gs dependency & instructions for RHEL (#1228) * Update gs depedency to 9.54 * Add instructions for RHEL * Update instruction for using python3.11 on RHEL --- docs/installation.rst | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index 24a138e9..06f6e3d2 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -139,6 +139,32 @@ from sources <#installing-head-revision-from-sources>`__. .. _ubuntu-lts-latest: +RHEL 9 +------ + +Prepare the environment by getting Python 3.11: + +.. code-block:: bash + + dnf install python3.11 python3.11-pip + +Then, follow `Requirements for pip and HEAD install <#requirements-for-pip-and-head-install>`__ to instal dependencies: + +.. code-block:: bash + + dnf install ghostscript tesseract + +and build ocrmypdf in virtual environment: + +.. code-block:: bash + + python3.11 -m venv .venv + +To add JBIG2 encoding, see `Installing the JBIG2 encoder `__. + +Note Fedora packages for language data haven't been branched for RHEL/EPEL, but you can get traineddata files directly from `tesseract +`__ and place them in ``/usr/share/tesseract/tessdata``. + Installing the latest version on Ubuntu 22.04 LTS ------------------------------------------------- @@ -553,7 +579,7 @@ manager. ``pip`` cannot provide them. The following versions are required: - Python 3.10 or newer -- Ghostscript 9.55 or newer +- Ghostscript 9.54 or newer - Tesseract 4.1.1 or newer - jbig2enc 0.29 or newer - pngquant 2.5 or newer