Skip to content

Instantly share code, notes, and snippets.

@avoidik
Last active July 16, 2024 22:26
Show Gist options
  • Save avoidik/5c012a1447e90925900ce099b7624e83 to your computer and use it in GitHub Desktop.
Save avoidik/5c012a1447e90925900ce099b7624e83 to your computer and use it in GitHub Desktop.
Building nfstrace on Amazon Linux 2023

How to compile nfstrace

Prerequisites

Make sure we're using Amazon Linux

$ cat /etc/amazon-linux-release
Amazon Linux release 2023.4.20240429 (Amazon Linux)

Install packages

$ sudo dnf group install "Development Tools"
$ sudo dnf install -y git-core cmake libpcap-devel ncurses-devel json-c-devel libtirpc-devel gtest-devel texlive-latex

Compilation

Clone repository

$ git clone --branch tirpc --depth=1 https://github.com/epam/nfstrace.git
$ cd nfstrace/
$ mkdir release
$ cd release

Compile and build

$ mkdir buildout
$ cmake -DCMAKE_INSTALL_PREFIX="$(pwd)/buildout" -DCMAKE_BUILD_TYPE=release ../
$ make
$ make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment