.net – 在Linux上编译MonoDevelop 5.3时出错
发布时间:2020-12-14 01:01:39 所属栏目:Linux 来源:网络整理
导读:我在笔记本电脑上安装了Ubuntu 14.04,我正在尝试编译从 GitHub下载的MonoDevelop 5.3代码,我已经安装了所有的依赖项. 我安装了Mono 3.2.8: raven@raven-laptop:~/Downloads/monodevelop$mono -VMono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu
我在笔记本电脑上安装了Ubuntu 14.04,我正在尝试编译从
GitHub下载的MonoDevelop 5.3代码,我已经安装了所有的依赖项.
我安装了Mono 3.2.8: raven@raven-laptop:~/Downloads/monodevelop$mono -V Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1) Copyright (C) 2002-2014 Novell,Inc,Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported,not enabled. GC: sgen 当我使用./Configure我得到这个: Configuration summary * Installation prefix = /usr * Version = 5.3 * Version Label = 5.3 * Compat Version = 5.0 * C# compiler = /usr/bin/dmcs * Mono class library development extensions: yes * Version control providers: * Subversion (Unix): yes * Git: yes * Platform bindings: GNOME * Unit tests: no Now type `make' to compile MonoDevelop Configuration Summary --------------------- MonoDevelop has been configured with prefix = /usr profile = default Packages included in the build: main 但是当我使用make时发送给我这个错误: Errors: /home/raven/Downloads/monodevelop/main/Main.sln (default targets) -> (Build target) -> /home/raven/Downloads/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj (default targets) -> (BeforeBuild target) -> /home/raven/Downloads/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet.csproj: error : Command 'mono ../../../external/nuget-binary/NuGet.exe restore -SolutionDirectory ../../..' exited with code: 1. 1 Warning(s) 1 Error(s) Time Elapsed 00:00:24.5810510 make[2]: *** [sln_build] Error 1 make[2]: Leaving directory `/home/raven/Downloads/monodevelop/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/raven/Downloads/monodevelop/main' make: *** [all-recursive] Error 1 如果有人知道如何解决此错误,请告诉我,谢谢. 解决方法
如果在Linux上编译MonoDevelop时出现NuGet错误,则可以通过直接在命令行上运行NuGet恢复来查看实际的错误消息.
mono external/nuget-binary/NuGet.exe restore Main.sln 如果错误消息包含: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure 那么这很可能是自Linux by default does not trust any certificates以来的证书错误. 通常可以通过运行以下命令来修复此NuGet错误: mozroots --import --sync 如果以上不起作用,请查看NuGet on Linux Error Getting Response Stream StackOverflow帖子,其中有其他略有不同的mozroots命令,您可以尝试. (以上内容已从评论中删除,以便于查找) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |