DNX项目地址:https://github.com/aspnet/DNX
将build.sh中的 #!/bin/sh 改为 #!/usr/bin/env bash ,然后在Linux Ubuntu上运行 ./build.sh ,出现下面的错误:
Determining latest version Latest version is 1.0.0-beta4-11268 dnx-mono.1.0.0-beta4-11268 already installed. Cannot find dnx-mono.1.0.0-beta4-11268, do you need to run 'dnvm install 1.0.0-beta4-11268'? info: Target default info: Target pre-clean info: Target target-dir-clean info: Target build-clean info: Target clean info: Target post-clean info: Target validate info: Target restore-npm-modules info: Target restore-bower-components info: Target run-grunt info: Target repo-initialize info: Exec info: program: kpm info: commandline: restore info: workingdir: src/Microsoft.Framework.ApplicationHost warn: ApplicationName='kpm', CommandLine='restore', CurrentDirectory='src/Microsoft.Framework.ApplicationHost', Native error= Cannot find the specified file verbose: Stack trace: at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in :0 at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in :0 at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in :0 at View5dd5fdc359be45c5a09589b332b45939+c__AnonStorey3.<>m__12 () [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].CallTarget (System.String name) [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].StartingTarget (System.String name) [0x00000] in :0 at View5dd5fdc359be45c5a09589b332b45939+c__AnonStorey3.<>m__5 () [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].CallTarget (System.String name) [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].StartingTarget (System.String name) [0x00000] in :0 at View5dd5fdc359be45c5a09589b332b45939+c__AnonStorey3.<>m__6 () [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].CallTarget (System.String name) [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].StartingTarget (System.String name) [0x00000] in :0 at View5dd5fdc359be45c5a09589b332b45939+c__AnonStorey3.<>m__7 () [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].CallTarget (System.String name) [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].StartingTarget (System.String name) [0x00000] in :0 at View5dd5fdc359be45c5a09589b332b45939+c__AnonStorey3.<>m__8 () [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].CallTarget (System.String name) [0x00000] in :0 at View5dd5fdc359be45c5a09589b332b45939+c__AnonStorey3.<>m__0 () [0x00000] in :0 at Sake.Engine.Builder.BuilderBase`1[System.Object].CallTarget (System.String name) [0x00000] in :0 at Sake.Engine.SakeEngine.Execute (Sake.Engine.Options options) [0x00000] in :0 at Sake.Engine.SakeEngine.Execute (System.String[] args) [0x00000] in :0 at Sake.Program.Main (System.String[] args) [0x00000] in :0
请问如何解决这个问题?
你是专门做编译器测试的吧?
上面不是让你运行'dnvm install 1.0.0-beta4-11268'吗?
这个提示是dnvm的bug,实际已经安装好了,你看这个之前的提示信息:
Latest version is 1.0.0-beta4-11268 dnx-mono.1.0.0-beta4-11268 already installed.