From 46da0470f0349bbb896df6d44d76a00df1e63b3e Mon Sep 17 00:00:00 2001 From: Mario Hewardt Date: Tue, 14 Feb 2023 12:22:29 -0800 Subject: [PATCH] Update build instructions (#96) --- BUILD.md | 19 ++++++++++--------- CMakeLists.txt | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/BUILD.md b/BUILD.md index 33e55cb..3b23082 100644 --- a/BUILD.md +++ b/BUILD.md @@ -8,8 +8,9 @@ the [SysinternalsEBPF](https://github.com/Sysinternals/SysinternalsEBPF) project or via the `sysinternalsebpf` DEB package from the _packages.microsoft.com_ repository (see [INSTALL.md](INSTALL.md)). +If you installed SysinternalsEBPF via make install, you may need to add /usr/local/lib to the loader library path (LD_LIBRARY_PATH). -- .NET (latest) SDK. Please see [.NET Installation](https://learn.microsoft.com/en-us/dotnet/core/install/linux) +- .NET 6 SDK. Please see [.NET Installation](https://learn.microsoft.com/en-us/dotnet/core/install/linux) - clang/llvm v10+ @@ -40,22 +41,22 @@ under `/usr/local`: ### Rocky 9 ``` -dnf install dnf-plugins-core -dnf config-manager --set-enabled crb -dnf install epel-release +sudo dnf install dnf-plugins-core +sudo dnf config-manager --set-enabled crb +sudo dnf install epel-release -dnf update +sudo dnf update dotnet tool install --global dotnet-t4 --version 2.3.1 sudo yum install gcc gcc-c++ make cmake llvm clang elfutils-libelf-devel rpm-build json-glib-devel python3 libxml2-devel gtest-devel gmock gmock-devel ``` ### Rocky 8 ``` -dnf install dnf-plugins-core -dnf install epel-release -dnf config-manager --set-enabled powertools +sudo dnf install dnf-plugins-core +sudo dnf install epel-release +sudo dnf config-manager --set-enabled powertools -dnf update +sudo dnf update dotnet tool install --global dotnet-t4 --version 2.3.1 sudo yum install gcc gcc-c++ make cmake llvm clang elfutils-libelf-devel rpm-build json-glib-devel python3 libxml2-devel gtest-devel gmock gmock-devel ``` diff --git a/CMakeLists.txt b/CMakeLists.txt index 079009d..371e35a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ configure_file(package/SPECS.in/spec.in SPECS.spec) # # external programs used by this build # -set(TEXTTRANSFORM "/root/.dotnet/tools/t4") +set(TEXTTRANSFORM "$ENV{HOME}/.dotnet/tools/t4") set(ICONV "/usr/bin/iconv") set(LD "/usr/bin/ld")