-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_deps.sh
More file actions
executable file
·82 lines (78 loc) · 2.03 KB
/
install_deps.sh
File metadata and controls
executable file
·82 lines (78 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
echo "Installing dependencies for Circle2Search..."
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$ID
else
echo "Cannot determine Linux distribution"
exit 1
fi
case $OS in
ubuntu|debian|linuxmint|mint)
echo "Detected Ubuntu/Debian/Mint"
sudo apt-get update
sudo apt-get install -y \
build-essential \
libgtk-3-dev \
libtesseract-dev \
libleptonica-dev \
libx11-dev \
libcairo2-dev \
tesseract-ocr \
tesseract-ocr-eng \
tesseract-ocr-ara \
python3 \
openssh-client \
grim \
pkg-config
;;
fedora|rhel|centos)
echo "Detected Fedora/RHEL/CentOS"
sudo dnf install -y \
gcc \
make \
gtk3-devel \
tesseract-devel \
leptonica-devel \
libX11-devel \
cairo-devel \
tesseract \
tesseract-langpack-eng \
tesseract-langpack-ara \
python3 \
openssh-clients \
grim \
pkg-config
;;
arch|manjaro)
echo "Detected Arch/Manjaro"
sudo pacman -S --noconfirm \
base-devel \
gtk3 \
tesseract \
tesseract-data-eng \
tesseract-data-ara \
leptonica \
libx11 \
cairo \
python \
openssh \
grim \
pkg-config
;;
*)
echo "Unsupported distribution: $OS"
echo "Please install manually:"
echo " - GTK3 + Cairo development files"
echo " - Tesseract OCR + development files"
echo " - Leptonica development files"
echo " - X11 development files"
echo " - Python 3"
echo " - OpenSSH client"
echo " - GCC and Make"
exit 1
;;
esac
echo ""
echo "Dependencies installed successfully!"
echo "Run 'make' to build the project."