Install dependencies
The framework requires the following components:
Required: GCC 9.5+, CMake 3.12+, OpenSSL 1.1.1+, PCRE 8.43, Zlib 1.2.11, LibXml2 2.9.13
Optional: PostgreSQL, MySQL, Redis — install if you need to work with the corresponding databases.
Start by updating the package list:
sudo apt updateGCC
Install the build-essential package by typing:
sudo apt install build-essentialThe command installs many new packages, including gcc, g++ and make
To verify that the GCC compiler has been successfully installed, use the gcc --version command, which displays the GCC version.
gcc --versionGCC is now installed on your system and you can start using it.
Cmake
Package Manager
Installing cmake from the official repositories is done with the command:
sudo apt install cmakeBuild from source files
Download the archive from the official site:
wget https://github.com/Kitware/CMake/releases/download/v3.27.0-rc3/cmake-3.27.0-rc3.tar.gzUnpack:
tar -zxvf cmake-3.27.0-rc3.tar.gzChange to the unpacked directory:
cd cmake-3.27.0-rc3Start the build process
./bootstrapStart the installation process
makeCopy the compiled files to the appropriate locations
make installPCRE
Installing pcre from the official repositories is done with the command:
sudo apt install libpcre3-devZlib
Package Manager
Installing zlib from the official repositories is done with the command:
sudo apt install zlib1g-devBuilding from source files
Download the archive from the official site:
wget https://zlib.net/zlib-1.2.13.tar.gzUnpack:
tar -zxvf zlib-1.2.13.tar.gzChange to the unpacked directory:
cd zlib-1.2.13Start the build process
./configureStart the installation process
makeCopy the compiled files to the appropriate locations
make installOpenSSL
Installing openssl from the official repositories is done with the command:
sudo apt install openssl libssl-devLibXml2
Package Manager
Installing libxml2 from the official repositories is done with the command:
sudo apt install libxml2-devBuilding from source files
Download the archive from the official site:
wget https://github.com/GNOME/libxml2/releases/download/v2.9.13/libxml2-2.9.13.tar.gzUnpack:
tar -zxvf libxml2-2.9.13.tar.gzChange to the unpacked directory:
cd libxml2-2.9.13Start the build process
./configureStart the installation process
makeCopy the compiled files to the appropriate locations
make installMySQL
sudo apt install mysql-serverDetailed instructions are available on DigitalOcean
PostgreSQL
sudo apt install postgresql postgresql-contribDetailed instructions are available on DigitalOcean
Redis
Add the repository to the apt index:
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.listThen install:
sudo apt-get install redisDetailed instructions are available on Redis