我尝试按照以下说明在树莓派3上安装.net core:
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
有没有遗漏的东西?
请使用最后一个有效网址:
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
它可以在Raspberry Pi 2的最新Raspbian上成功下载并安装(我认为Raspberry Pi 3应该没有问题)。
但是,成功安装后,将出现错误:
bash: dotnet: cannot execute binary file: Exec format error
我相信这是因为ARM体系结构,因为当前仅支持amd64(x64)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句