-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstructions.txt
More file actions
209 lines (125 loc) · 5.18 KB
/
instructions.txt
File metadata and controls
209 lines (125 loc) · 5.18 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
================================================================================
GUARDME C++ SETUP INSTRUCTIONS
================================================================================
This document explains how to set up and run GuardME C++ on your system.
Choose either the automatic setup (recommended) or manual setup.
================================================================================
OPTION 1: AUTOMATIC SETUP (RECOMMENDED)
================================================================================
The setup script handles everything automatically, including:
- Detecting your operating system and package manager
- Installing Homebrew on macOS if not present
- Installing all required dependencies
- Compiling the application
Steps:
1. Open a terminal and navigate to the guardme_cpp folder:
cd guardme_cpp
2. Make the script executable (first time only):
chmod +x setup.sh
3. Run the setup script:
./setup.sh
4. After successful build, run GuardME:
./build/guardme_console
5. (Optional) Update ClamAV virus definitions:
sudo freshclam
================================================================================
OPTION 2: MANUAL SETUP
================================================================================
Follow these steps to manually install dependencies and compile GuardME.
--- LINUX (Ubuntu/Debian) ---
1. Install dependencies:
sudo apt update
sudo apt install g++ pkg-config libcurl4-openssl-dev libssl-dev clamav
2. Create build directory:
cd guardme_cpp
mkdir -p build
3. Compile:
g++ -std=c++17 -Wall -O2 \
$(pkg-config --cflags libcurl openssl) \
-o build/guardme_console src/console_main.cpp \
$(pkg-config --libs libcurl openssl)
4. Run:
./build/guardme_console
--- LINUX (Fedora/RHEL/CentOS) ---
1. Install dependencies:
sudo dnf install gcc-c++ pkgconfig libcurl-devel openssl-devel clamav
2. Create build directory:
cd guardme_cpp
mkdir -p build
3. Compile:
g++ -std=c++17 -Wall -O2 \
$(pkg-config --cflags libcurl openssl) \
-o build/guardme_console src/console_main.cpp \
$(pkg-config --libs libcurl openssl)
4. Run:
./build/guardme_console
--- LINUX (Arch Linux) ---
1. Install dependencies:
sudo pacman -S gcc pkgconf curl openssl clamav
2. Create build directory:
cd guardme_cpp
mkdir -p build
3. Compile:
g++ -std=c++17 -Wall -O2 \
$(pkg-config --cflags libcurl openssl) \
-o build/guardme_console src/console_main.cpp \
$(pkg-config --libs libcurl openssl)
4. Run:
./build/guardme_console
--- macOS ---
1. Install Homebrew (if not installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. Install dependencies:
brew install gcc pkg-config curl openssl clamav
3. Create build directory:
cd guardme_cpp
mkdir -p build
4. Compile:
g++ -std=c++17 -Wall -O2 \
$(pkg-config --cflags libcurl openssl) \
-o build/guardme_console src/console_main.cpp \
$(pkg-config --libs libcurl openssl)
5. Run:
./build/guardme_console
================================================================================
CLAMAV SETUP
================================================================================
ClamAV provides virus scanning capabilities. After installation:
1. Update virus definitions:
sudo freshclam
2. If freshclam fails, you may need to configure it first:
sudo cp /etc/clamav/freshclam.conf.sample /etc/clamav/freshclam.conf
sudo sed -i 's/^Example/#Example/' /etc/clamav/freshclam.conf
sudo freshclam
3. Verify ClamAV is working:
clamscan --version
================================================================================
TROUBLESHOOTING
================================================================================
Problem: "pkg-config: command not found"
Solution: Install pkg-config using your package manager
Problem: "curl/curl.h: No such file or directory"
Solution: Install libcurl development files (libcurl4-openssl-dev on Debian)
Problem: "openssl/sha.h: No such file or directory"
Solution: Install OpenSSL development files (libssl-dev on Debian)
Problem: ClamAV scan says "not available"
Solution: Install ClamAV and run 'sudo freshclam' to update definitions
Problem: Build fails with linker errors
Solution: Ensure all libraries are installed and pkg-config can find them:
pkg-config --libs libcurl openssl
================================================================================
REQUIREMENTS SUMMARY
================================================================================
Required:
- C++17 compatible compiler (g++ 7+ or clang++ 5+)
- pkg-config
- libcurl (with development headers)
- OpenSSL (with development headers)
Optional:
- ClamAV (for virus scanning functionality)
================================================================================
CONTACT & SUPPORT
================================================================================
For issues or questions, please refer to the README.md file or submit an issue
to the project repository.
================================================================================