2

我尝试按照下面的指南在我的树莓派 3 上安装 .net 核心:

https://www.microsoft.com/net/core#debian

该脚本告诉我在下面安装:

dotnet_install: Error: Unable to locate libunwind. Install libunwind to continue
dotnet_install: Error: Unable to locate gettext. Install gettext to continue

我使用 apt-get install 安装它们,一切都很好:

sudo apt-get install libunwind-dev
sudo apt-get install gettext

但没有运气,当我在下面运行时:

sudo curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version 1.0.0-preview1-002702 --install-dir ~/dotnet

我有:

dotnet_install: Error: Download failed

有没有遗漏?

4

1 回答 1

0

请使用最后一个有效的 URL:

curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview1/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version 1.0.0-preview1-002702 --install-dir ~/dotnet

它在树莓派 2 上的最新 Raspbian 上成功下载并安装(我认为树莓派 3 应该没有问题)。

但是,安装成功后,出现错误:

bash: dotnet: cannot execute binary file: Exec format error

我相信这是因为 ARM 架构,因为目前只支持 amd64 (x64)。

于 2016-05-29T14:46:06.820 回答