gpt4 book ai didi

.net - 在 Linux 上编译 MonoDevelop 5.3 时出错

转载 作者:IT王子 更新时间:2023-10-29 01:21:54 26 4
gpt4 key购买 nike

我已经在我的笔记本电脑上安装了 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 restore 来查看实际的错误消息。

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 命令。

(以上内容从评论中移出,方便查找)

关于.net - 在 Linux 上编译 MonoDevelop 5.3 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24793207/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com