DNX is. NET execution Environment, formerly Xre,xre, formerly known as Kruntime, Project URL: Https://github.com/aspnet/DNX.
Code to check out DNX:
git clone https://github.com/aspnet/DNX.git--recursive
To install Mono:
Apt-get Install Mono-complete
Run the./build.sh command to compile with an error:
Warning:invalid certificate received from server. Error Code:0xffffffff800b010awarning:invalid certificate received from server. Error Code:0xffffffff800b010awarning:invalid certificate received from server. Error Code:0xffffffff800b010awarning:invalid certificate received from server. Error code:0xffffffff800b010aunable to the Find package ' korebuild '. Warning:error getting response stream (write:the authentication or decryption has failed.): Sendfailurewarning:error ge Tting response Stream (write:the authentication or decryption have failed.): sendfailureunable to find version ' 0.2 ' of PA Ckage ' Sake '.
This issue can be fixed by the following command:
Certmgr=/usr/local/bin/certmgrsudo $CERTMGR-ssl-m https://go.microsoft.comsudo $CERTMGR-ssl-m https:// Nugetgallery.blob.core.windows.netsudo $CERTMGR-ssl-m https://nuget.orgsudo $CERTMGR-ssl-m Https://www.myget.org/F /aspnetvnext/mozroots--import--sync
To continue compiling, the following error occurred:
./build.sh:31:./build.sh:source:not found./build.sh:35:./build.sh:dnvm:not found
Change the first line in the build.sh file from #!/bin/sh to #!/usr/bin/env bash , and the error disappears.
The reason for the error is: in Ubuntu,/bin/sh points to/bin/dash, and Dash does not support the source command, as described in source commands not found in SH shell.
To continue compiling, the following error occurred:
Info:execinfo: program:kpminfo: commandline:restoreinfo: workingdir:src/ Microsoft.framework.applicationhostwarn:applicationname= ' kpm ', commandline= ' restore ', currentdirectory= ' src/ Microsoft.Framework.ApplicationHost ', Native error= cannot find the specified file
View the Makefile.shade file (this is the configuration file for sake) and discover that the problem is in the configuration section below
For Each= ' var projectfile in Files.include ("Src/*/project.json") ' exec program= ' cmd ' commandline= '/C kpm restore ' If= '! Ismono ' workingdir= "${path.getdirectoryname (ProjectFile)}" exec program= ' kpm ' commandline= ' restore ' if= ' Ismono ' Workingdir= ' ${path.getdirectoryname (projectfile)} "for Each= ' var projectfile in Files.include (" Test/*/project.json ") ' exec program= ' cmd ' commandline= '/C kpm restore ' if= '! Ismono ' workingdir= "${path.getdirectoryname (ProjectFile)}" exec program= ' kpm ' commandline= ' restore ' if= ' Ismono ' Workingdir= ' ${path.getdirectoryname (projectfile)} "for Each= ' var projectfile in Files.include (" samples/*/ Project.json ") ' exec program= ' cmd ' commandline= '/C kpm restore ' if= '! Ismono ' workingdir= "${path.getdirectoryname (ProjectFile)}" exec program= ' kpm ' commandline= ' restore ' if= ' Ismono ' Workingdir= ' ${path.getdirectoryname (projectfile)} "
An error occurred because the KPM command was not found.
Issue has been submitted on GitHub for this issue and will continue compiling after the problem has been resolved.
Compiling dnx on Linux ubuntu