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.
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
- For ARM32, switch "arm64" to "arm" in the link above.
- For .NET Core 3.1, you can get the download link @ https://dotnet.microsoft.com/download/dotnet-core/3.1 (look for ARM binaries).
.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
The following steps can be used to try out .NET Core.
dotnet new console -o app
cd app
dotnet run
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