Update the OS package manager
sudo apt-get update -qqy
sudo yum update -qqy
Install the following packages using the package manager (or any other way you prefer), wget, curl, git, openssl, libssl-dev, pkg-config, clang.
sudo apt-get install -qqy wget curl git openssl libssl-dev pkg-config clang
sudo yum install -qqy wget curl git openssl openssl-devel
Install build-essential or its equivalent to the OS you are using
sudo apt-get install build-essential
sudo yum groupinstall -yqq 'Development Tools'
sudo yum install -yqq centos-release-scl
sudo yum install -yqq devtoolset-9 llvm-toolset-7
export PATH=/opt/rh/devtoolset-9/root/usr/bin/:$PATH
export LD_LIBRARY_PATH=/opt/rh/llvm-toolset-7/root/usr/lib64:$LD_LIBRARY_PATH
export PATH=/opt/rh/llvm-toolset-7/root/usr/bin:$PATH
sudo yum groupinstall -yqq 'Development Tools'
sudo yum install -yqq clang
Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > install_rust.sh
sh install_rust.sh -y
export PATH=/home/meir/.cargo/bin:$PATH
Currently the edition 2021 of Rust language is used and the MSRV is 1.67
.
Build the project for release using Cargo Build
cargo build --release
Build the project for debug using Cargo Build
cargo build
Install RLTest to run the python tests
python3 -m pip install RLTest
Install Redis 7.0.3
mkdir -p redis
git clone https://github.com/redis/redis ./redis
cd redis
git checkout 7.0.3
make
sudo make install
Enter directory ./pytests
cd ./pytests
Run the tests using RLTest
python3 -m RLTest --parallelism 10