首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在没有.Net SDK的情况下构建.net SDK

如何在没有.Net SDK的情况下构建.net SDK
EN

Stack Overflow用户
提问于 2020-04-08 16:34:05
回答 1查看 227关注 0票数 0

我正在尝试为rhel7.6/aarch64构建Azure Agent

但是.Net SDK是用更高的glibc版本构建的,我收到了一个错误:

代码语言:javascript
复制
$ git clone https://github.com/microsoft/azure-pipelines-agent.git
$ cd azure-pipelines-agent
$ cd src
$ ./dev.sh layout
...
-----------------------------------------
  Install .NET SDK
-----------------------------------------
Download dotnetsdk into /source-build/azure-pipelines-agent/src/../_dotnetsdk/3.1.100
dotnet_install: Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.
dotnet_install: Warning: Unable to locate liblttng. Probable prerequisite missing; install libcurl.
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100/dotnet-sdk-3.1.100-linux-arm64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/3.1.100/dotnet-sdk-3.1.100-linux-arm64.tar.gz
dotnet-install: Binaries of dotnet can be found in /source-build/azure-pipelines-agent/_dotnetsdk/3.1.100
dotnet-install: Installation finished successfully.


-----------------------------------------
  .NET SDK to path
-----------------------------------------
Adding .NET to PATH (/source-build/azure-pipelines-agent/src/../_dotnetsdk/3.1.100)
Path = /source-build/azure-pipelines-agent/src/../_dotnetsdk/3.1.100:/usr/lib64/qt-3.3/bin:/labhome/andreyma/perl5/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/ibutils/bin:/labhome/andreyma/bin
dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by dotnet)
dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by dotnet)
.NET Version =

接下来,我将尝试为相同的平台构建.Net SDK。但它也拉动了.Net SDK来构建自己。循环结束。

代码语言:javascript
复制
$ git clone https://github.com/dotnet/sdk.git
$ cd sdk
$ ./build.sh
Downloading 'https://dot.net/v1/dotnet-install.sh'
Trying to run 'curl https://dot.net/v1/dotnet-install.sh -sSL --retry 10 --create-dirs -o /source-build/sdk/.dotnet/dotnet-install.sh' for maximum of 5 attempts.
Ran 'curl https://dot.net/v1/dotnet-install.sh -sSL --retry 10 --create-dirs -o /source-build/sdk/.dotnet/dotnet-install.sh' successfully.
dotnet_install: Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.
dotnet_install: Warning: Unable to locate liblttng. Probable prerequisite missing; install libcurl.
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-preview.2.20152.7/dotnet-sdk-5.0.100-preview.2.20152.7-linux-arm64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-preview.2.20152.7/dotnet-sdk-5.0.100-preview.2.20152.7-linux-arm64.tar.gz
dotnet-install: Adding to current process PATH: `/source-build/sdk/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Installation finished successfully.
/source-build/sdk/.dotnet/dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /source-build/sdk/.dotnet/dotnet)
/source-build/sdk/.dotnet/dotnet: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /source-build/sdk/.dotnet/dotnet)
Build failed (exit code '1').

我已经研究了构建脚本,如果没有特定版本的dotnet-clilooks like .Net SDK就无法构建。

那么,如何使用本地构建工具构建.Net开发工具包呢?有可能吗?

EN

回答 1

Stack Overflow用户

发布于 2020-04-08 20:10:00

要在新操作系统上引导SDK,请按照Adding support for a new OS上相应的源码链接指南进行操作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61096544

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档