Deno on ARMv8 (Linux)

Running Deno on ARMv8 on Linux has one problem: there’s no released binary (see here for v1.13 which is the current version when I’m typing this). Luckily it’s very easy to build Deno: rustup and cargo install is all you need…

Unfortunately my little R2S with 1GB RAM is way too under-powered for this: E.g. the cargo build uses 2.5GB in /tmp. /tmp by default is 50% of physical RAM, so 0.5GB, which is way too small. While I could work around this by mounting a USB stick to the USB 2.0 port of the R2S, it won’t be fast.

AWS t4g.medium to the rescue! Spin up a t4g.medium instance (I use Terraform), and then execute

sudo yum groupinstall 'Development Tools'
curl --proto '=https' --tlsv1.2 -sSf | sh
cargo install deno

and some not-so-short time later you got an ARMv8 binary in ~/.cargo/bin:

[ec2-user@ip-172-31-45-62 ~]$ ls -l ~/.cargo/bin/
total 272456
-rwxr-xr-x 12 ec2-user ec2-user  14255928 Aug 12 09:13 cargo
-rwxrwxr-x  1 ec2-user ec2-user 107928560 Aug 12 09:59 deno

Copy that binary and it works fine on my little R2S.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create your website with
Get started
%d bloggers like this: