Sahar7888 commited on
Commit
22025c3
·
verified ·
1 Parent(s): 6520da4

Update setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +13 -3
setup.sh CHANGED
@@ -1,11 +1,21 @@
1
  #!/bin/bash
2
 
3
  # Update package lists
 
4
  apt-get update
5
 
6
  # Install Tesseract and required libraries
 
7
  apt-get install -y tesseract-ocr libtesseract-dev libmagickwand-dev
8
 
9
- # Check installation and get the path
10
- which tesseract
11
- tesseract --version
 
 
 
 
 
 
 
 
 
1
  #!/bin/bash
2
 
3
  # Update package lists
4
+ echo "Updating package lists..."
5
  apt-get update
6
 
7
  # Install Tesseract and required libraries
8
+ echo "Installing Tesseract and required libraries..."
9
  apt-get install -y tesseract-ocr libtesseract-dev libmagickwand-dev
10
 
11
+ # Check installation
12
+ echo "Checking Tesseract installation..."
13
+ TESSERACT_PATH=$(which tesseract)
14
+ if [ -z "$TESSERACT_PATH" ]; then
15
+ echo "Tesseract installation failed."
16
+ else
17
+ echo "Tesseract is installed at: $TESSERACT_PATH"
18
+ tesseract --version
19
+ fi
20
+
21
+ echo "Setup script completed."