Compiling dnx on Linux ubuntu

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.