- Rust 1.80+
- Clang/LLVM
pkg-config
- OpenSSL (libcrypto) (
libssl-devin Debian 10) - LibLZMA (
liblzma-devin Debian 10) - Nettle (
nettle-devin Debian 10) - Redis or Redis protocol-compatible server
And you need a PostgreSQL server. You will need to deploy one on your device.
- Install both build and runtime dependencies
- Spin up the PostgreSQL server, it's recommended to create a offline database:
createdb <database_name>; for details on how to configure a offline database, please refer to the full setup guide - Type
cargo install sqlx-cli - Execute
export DATABASE_URL="postgres://localhost/<database_name>" - Execute
sqlx migrate run - Run
cargo build --release
PostgreSQL server is required when building because the compiler will check if the SQL statements are semantically correct.
- Download or build
p-vector - You will need a signing key for your repository, you can generate a new one using
gpg --gen-keyorp-vector gen-key - Open
config.tomlin your favorite text editor and adapt the configurations to your needs - Save the configuration to somewhere (e.g.
/etc/p-vector/config.toml) - Start the PostgreSQL server if not already done so
- Run
p-vector --config <path/to/config.toml> fullto start the first scan