From 50b921f318fa985b92bc97443658c0a26b9b795b Mon Sep 17 00:00:00 2001 From: trytomakeyouprivate <113100745+trytomakeyouprivate@users.noreply.github.com> Date: Sun, 14 May 2023 17:11:04 +0000 Subject: [PATCH] Update LocalRunGuide.md Added Fedora Installation translations. Not sure about zlib-devel. Why are pip packages installed through apt on ubuntu? Where is the reasoning? --- LocalRunGuide.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/LocalRunGuide.md b/LocalRunGuide.md index 50bb6e9d..49617a91 100644 --- a/LocalRunGuide.md +++ b/LocalRunGuide.md @@ -43,6 +43,12 @@ sudo apt-get update sudo apt-get install -y git automake autoconf libtool libleptonica-dev pkg-config zlib1g-dev make g++ java-17-openjdk python3 python3-pip ``` +For Fedora-based systems use this command: + +```bash +sudo dnf install -y git automake autoconf libtool leptonica-devel pkg-config zlib-devel make gcc-c++ java-17-openjdk python3 python3-pip +``` + ### Step 2: Clone and Build jbig2enc (Only required for certain OCR functionality) ```bash @@ -88,6 +94,13 @@ sudo apt-get install -y libreoffice-core libreoffice-common libreoffice-writer l pip3 install opencv-python-headless ``` +For Fedora: + +```bash +sudo dnf install -y libreoffice-writer libreoffice-calc libreoffice-impress unpaper ocrmypdf +pip3 install uno opencv-python-headless unoconv pngquant +``` + ### Step 4: Clone and Build Stirling-PDF ```bash