制造商博客
- Björn·绍尔
- 制造商博客
- Hits: 5163
在AXC F 2152上安装.NET核心运行时3.0.0
抽象的
本指南介绍了如何在中华彩票彩网 Controller AXC F 2152上安装Dotnet Core Runtime 3.0.0版。控制器至少需要安装固件2019.6.3。
安装
下载 Linux ARM32的Dotnet运行时二进制文件.
wget //download.visualstudio.microsoft.com/download/pr/0c5e013b-fa57-44dc-85bf-746885181278/58647e532fcc3a45209c13cdfbf30c74/dotnet-runtime-3.0.0-linux-arm.tar.gz
将存档复制到控制器。
scp dotnet-runtime-3.0.0-linux-arm.tar.gz This email address is being protected from spambots. You need JavaScript enabled to view it.:/opt/plcnext/
将SSH连接到控制器并打开根登录shell。这需要控制器上的已启用root帐户。
ssh This email address is being protected from spambots. You need JavaScript enabled to view it.
su - root
提取存档。
mkdir /opt/dotnet-runtime-3.0.0-linux-arm
tar xvf /opt/plcnext/dotnet-runtime-3.0.0-linux-arm.tar.gz -C /opt/dotnet-runtime-3.0.0-linux-arm
rm /opt/plcnext/dotnet-runtime-3.0.0-linux-arm.tar.gz
环境设置
创建配置文件脚本以设置DotNet的环境。
cat <<"EOF" > /etc/profile.d/dotnet.sh
#!/bin/sh
export DOTNET_ROOT=/opt/dotnet-runtime-3.0.0-linux-arm
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
export COMPlus_LTTng=0
export PATH="$PATH:/opt/dotnet-runtime-3.0.0-linux-arm"
EOF
chmod +x /etc/profile.d/dotnet.sh
背景信息
The environment variable DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
has to be set due to a missing ICU installation on the controller. See the 全球化不变文档 在Corefx GitHub存储库中。
The COMPlus_LTTng
environment variable has to be set due to an old lttng installation on the controller. This prevents the tracing library to be loaded at runtime from dotnet core. See the issue #15693 在Coreclr Github存储库中,尤其是更多信息 这个评论 。通过拉拉请求引入环境变量 #24733.