Ubuntu 18.04 - ld-linux-aarch64.so.1 missing

I’m trying to following the instructions found here: cardano-node/install.md at master · input-output-hk/cardano-node · GitHub

When running cabal I get the following error:

/lib/ld-linux-aarch64.so.1: No such file or directory

Doing this on a clean ubuntu 18.04 image (in docker)

Can’t seem to figure out how to resolve this.

Well, are you using an ARM architecture ?

I’m doing this inside a Docker images on a Macbook Pro

sysctl -a | grep brand
machdep.cpu.brand_string: Intel(R) Core™ i9-9980HK CPU @ 2.40GHz
machdep.cpu.brand: 0

Sorry this probably seems obvious to someone who as experience building on various architectures, but I’m rather new to that space.

Ah, I see the problem. The binary that I’m downloading is “Binary download for Ubuntu Linux 18.04 (aarch64, requires glibc 2.12 or later)” … the “aarch64” = arm and not the architecture I’m on.

The other option “Binary download for Ubuntu Linux 16.04 (x86-64, requires glibc 2.12 or later)” seems to be the one I want 'x86-64" …

I was paying more attention to the 18.04 vs 16.04

Yes, that’s it. :+1:

When you want to know the architecture of any machine you have access to then you can use

$ uname -m

And on Ubuntu there is also arch command from coreutils package.