From d5250a4f8e2b29c74c51866c33e4101f469e5026 Mon Sep 17 00:00:00 2001 From: Falco <1364936+FalcoXYZ@users.noreply.github.com> Date: Fri, 3 Jun 2022 15:47:47 +0200 Subject: [PATCH 1/2] Update README.md Add extra dependency for arm64 to readme and the symlink for arm64/aarch64 --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 890849634c3..95d9872a831 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,12 @@ Nethermind is a is a high-performance, highly configurable full Ethereum protoco sudo apt-get install libsnappy-dev libc6-dev libc6 # Link libraries (only for Ubuntu >= 21.04) -sudo ln -s /usr/lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so +amd64 architecture: sudo ln -s /usr/lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so +arm64/aarch64 architecture: sudo ln -s /usr/lib/aarch64-linux-gnu/libdl.so.2 /usr/lib/aarch64-linux-gnu/libdl.so + +# Extra dependency for arm64/aarch64 +sudo apt-get install libgflags-dev + ``` *Tested on Ubuntu 21.04, 20.04 and 18.04 LTS and 21.10* From 89c3b93bf72b34d2239202e55f8c7507221d45c6 Mon Sep 17 00:00:00 2001 From: Falco <1364936+FalcoXYZ@users.noreply.github.com> Date: Fri, 3 Jun 2022 17:08:16 +0200 Subject: [PATCH 2/2] Update Dockerfile add libgflags-dev dependency to arm64 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0b56e97cd42..81ee3807867 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ RUN apt-get update && apt-get -y install libsnappy-dev libc6-dev libc6 # Fix rocksdb issue in ubuntu 22.04 RUN if [ "$TARGETARCH" = "amd64" ] ; \ then ln -s /usr/lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so > /dev/null 2>&1 ; \ - else ln -s /usr/lib/aarch64-linux-gnu/libdl.so.2 /usr/lib/aarch64-linux-gnu/libdl.so > /dev/null 2>&1 ; \ + else ln -s /usr/lib/aarch64-linux-gnu/libdl.so.2 /usr/lib/aarch64-linux-gnu/libdl.so > /dev/null 2>&1 && apt-get -y install libgflags-dev > /dev/null 2>&1 ; \ fi WORKDIR /nethermind