Skip to content

Latest commit

 

History

History
84 lines (59 loc) · 1.29 KB

linux.md

File metadata and controls

84 lines (59 loc) · 1.29 KB

Quick Start Guide for Linux

Prerequisites

To build this project, you will need the following:

  • Rust
  • Protobuf
  • OpenSSL development libraries

Installing Dependencies

1. Install Rust

Run the following command to install Rust via rustup:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

After installation, configure your shell with:

source $HOME/.cargo/env

Verify installation:

rustc --version

2. Install Protobuf

Ubuntu/Debian

sudo apt update
sudo apt install protobuf-compiler

Fedora

sudo dnf install protobuf-compiler

Arch Linux

sudo pacman -S protobuf

3. Install OpenSSL Development Libraries

Ubuntu/Debian

sudo apt update
sudo apt install pkg-config libssl-dev

Fedora

sudo dnf install pkg-config openssl-devel

Arch Linux

sudo pacman -S openssl

4. Manually Set Environment Variables (if needed)

If OpenSSL is not detected during the build, manually set the environment variables:

export OPENSSL_DIR=/usr/lib/ssl  # Adjust based on your system
export PKG_CONFIG_PATH=$OPENSSL_DIR/lib/pkgconfig

5. Build the Project

Once all dependencies are installed, build the project with:

cargo build