Skip to content

Instantly share code, notes, and snippets.

@richlander
Last active March 24, 2024 14:54
  • Star 77 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save richlander/467813274cea8abc624553ee72b28213 to your computer and use it in GitHub Desktop.
Installing .NET Core 3.0 on Linux ARM64

Installing .NET Core on Linux ARM64

The following intructions can be used to install .NET Core on Linux ARM64.

Pro tip: Check out .NET Core Docker files to determine the exact instructions for installing .NET Core builds, for example .NET Core 3.1 ARM32 SDK Dockerfile.

Installing .NET Core Globally

The following instructions install the latest .NET Core globally. It isn't required to do that, but it provides the best experience.

curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm64.tar.gz
sudo mkdir -p /usr/share/dotnet
sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

Dependencies

.NET Core has the following dependencies, on Ubuntu (other distros will vary):

  • libc6
  • libgcc1
  • libgssapi-krb5-2
  • libicu60
  • liblttng-ust0
  • libssl1.0.0
  • libstdc++6
  • zlib1g

Trying out .NET Core

The following steps can be used to try out .NET Core.

dotnet new console -o app
cd app
dotnet run

Other software

@richlander
Copy link
Author

I updated the gist to resolve a bunch of the issues raised. Thanks!

@bitsmaker
Copy link

Followed the instructions and getting this when I run dotnet in my cross-compiler shell

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

@waheedrafiq
Copy link

Hi guys I am getting the following error when i run sudo dotnet new console -o app :

linaro@tinkerboard:/usr/bin$ dotnet
-bash: /usr/bin/dotnet: cannot execute binary file: Exec format error
linaro@tinkerboard:/usr/bin$ sudo dotnet new console
/usr/bin/dotnet: 1: /usr/bin/dotnet:ELF▒▒2@@▒@8: not found
PuTTY/usr/bin/dotnet: 2: /usr/bin/dotnet: @!: not found
/usr/bin/dotnet: 3: /usr/bin/dotnet: $9@GPZkv}▒▒b▒▒▒: not found
/usr/bin/dotnet: 4: /usr/bin/dotnet: ▒: not found
/usr/bin/dotnet: 5: /usr/bin/dotnet: ▒: not found
/usr/bin/dotnet: 6: /usr/bin/dotnet: ▒: not found
/usr/bin/dotnet: 7: /usr/bin/dotnet: ▒: not found
/usr/bin/dotnet: 7: /usr/bin/dotnet: Syntax error: Unterminated quoted string
linaro@tinkerboard:/usr/bin$

the process i am running is armv71 on my Asus TinkerBoard has anyone manage to fix this issue or is there something that I can try

Thanks

@waheedrafiq
Copy link

waheedrafiq commented Jul 2, 2020

Hi Senior developers

Looks like I fix my issue for some reason you have to use the export command please follow this website tutorial to find out how to install .netcore on armv71 [.netcore]()

@AdiSegev
Copy link

AdiSegev commented Jul 7, 2020

Hi,

I need to run an exe file on an arm base device.

Can I do it with .NET core?

How can I do it after I download and install .NET core?

@chamaraonline
Copy link

chamaraonline commented Jul 21, 2020

.NET Core SDK
Version: 3.1.302

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: linux-arm64
Base Path: /usr/share/dotnet/sdk/3.1.302/

MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.BackEnd.NodeFailedToLaunchException: No such file or directory
---> System.ComponentModel.Win32Exception (2): No such file or directory

@ShikiSuen
Copy link

ShikiSuen commented Jul 22, 2020

@NessInOnett

Sorry for running out of topic, but could you please tell me which linux distro & desktop environment are you using?

@waheedrafiq
Copy link

waheedrafiq commented Jul 22, 2020 via email

@resistancelion
Copy link

.NET Core SDK
Version: 3.1.302

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: linux-arm64
Base Path: /usr/share/dotnet/sdk/3.1.302/

MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.BackEnd.NodeFailedToLaunchException: No such file or directory
---> System.ComponentModel.Win32Exception (2): No such file or directory

similar error on ubuntu 19 arm64...

@brianpopow
Copy link

the link to the .Net Core 3.1 ARM Dockerfile seems to be broken, it should be: https://github.com/dotnet/dotnet-docker/blob/master/src/sdk/3.1/bionic/arm32v7/Dockerfile

@Spongman
Copy link

i'm running arm64 ubuntu, why don't the regular ubuntu instructions just work?

@ryanbuening
Copy link

@richlander I did these steps

curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm64.tar.gz
sudo mkdir -p /usr/share/dotnet
sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
dotnet --version
6.0.100-preview.3.21168.18

and dotnet --version reported 6.0.100-preview.3.21168.18. Is there a way to get the latest non-preview version 6.0.201?

@ryanbuening
Copy link

@ksandaru
Copy link

ksandaru commented Jul 9, 2022

DO anyone know the supported .Net core version and how it can be installed on Raspberry pi 3 model B 64bit ARM running with Raspbian os 11?
I already installed .Net core 6.0, but CLI can not identify it when I run

dotnet

@richlander
Copy link
Author

Can you open an issue at dotnet/sdk and CC me?

@ksandaru
Copy link

ksandaru commented Jul 9, 2022

Can you open an issue at dotnet/sdk and CC me?

Sure. Thanks

@Hanprogramer
Copy link

Can this be used in Android?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment