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 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*