Didier commited on
Commit
0ee2031
·
verified ·
1 Parent(s): 7109571

Update setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +7 -4
setup.sh CHANGED
@@ -9,10 +9,13 @@ apt-get install -y tesseract-ocr
9
  # Install Poppler for PDF processing
10
  apt-get install -y poppler-utils
11
 
12
- # Install Ghostscript for OCRMyPDF
13
- apt-get install -y ghostscript
 
 
 
 
 
14
 
15
  # Verify installation
16
- tesseract --version
17
- pdfinfo -v
18
  gs --version
 
9
  # Install Poppler for PDF processing
10
  apt-get install -y poppler-utils
11
 
12
+ # Remove the outdated Ghostscript version
13
+ apt-get remove -y ghostscript
14
+
15
+ # Download and install a newer Ghostscript version
16
+ wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs1003/ghostscript-10.03.0-linux-x86_64.tgz
17
+ tar -xvzf ghostscript-10.03.0-linux-x86_64.tgz
18
+ mv ghostscript-10.03.0-linux-x86_64/gs-1003-linux-x86_64 /usr/local/bin/gs
19
 
20
  # Verify installation
 
 
21
  gs --version