Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 在Linux上编译MonoDevelop 5.3时出错_.net_Linux_Mono_Makefile_Monodevelop - Fatal编程技术网

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

.net 在Linux上编译MonoDevelop 5.3时出错,.net,linux,mono,makefile,monodevelop,.net,Linux,Mono,Makefile,Monodevelop,我已经在我的笔记本电脑上安装了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, Xamar

我已经在我的笔记本电脑上安装了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

如果有人知道如何修复此错误,请告诉我,谢谢。

我也有同样的问题,无法找到解决方案,我在这里找到了ppa:

其中安装了5.3罚款。这些信息来自MonoDevelop google+小组:


如果在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
那么这很可能是一个证书错误

通常可以通过运行以下命令来修复此NuGet错误:

mozroots --import --sync
如果上述操作不起作用,请查看StackOverflow post,它还有其他稍微不同的mozroots命令,您可以尝试


(以上内容已从注释中删除,以便于查找)

尝试还原NuGet软件包时出错。不幸的是,实际的错误消息没有显示。这可能是一个证书错误。尝试运行external/nuget binary/nuget.exe并将其路径传递给解决方案目录-
mono../../../external/nuget binary/nuget.exe restore-SolutionDirectory../../
。或者您可以从主目录运行
mono external/nuget binary/nuget.exe restore Main.sln
。我已经使用了
mono external/nuget binary/nuget.exe restore Main.sln
,这是错误消息:
警告:初始化函数尝试访问此实例上的值警告:获取响应流时出错(写入:身份验证或解密失败):SendFailure警告:初始化函数尝试访问此实例上的值,但找不到包“Microsoft.AspNet.Mvc”的版本“4.0.30506”。找不到包“Microsoft.AspNet.WebPages”的版本“2.0.30506”。找不到程序包“Microsoft.AspNet.Razor”的版本“2.0.30506”。
看起来是证书问题。您试过运行
mozroot--import--sync
吗谢谢,现在我可以编译code@Tico-很久以前,我在Linux上遇到了一个问题NuGet,在搜索关于mozroots修复程序的错误消息时,我从这里读到了-在Linux上,任何HTTPS调用都可能失败,因为默认情况下,它不信任任何人-太棒了,马特。非常感谢。另一件可能会影响使用GNOME的用户的事情。最近的gnome终端不再接受--disable工厂参数。因此,如果您想在终端之外访问Monodevelop,请创建一个脚本:
导出GNOME_DESKTOP_SESSION_ID=&&Monodevelop
,并替换.DESKTOP文件以运行脚本,而不仅仅是Monodevelop。(注意:
unset-GNOME\u-DESKTOP\u-SESSION\u-ID&&monodevelop
可能也能工作)。在Ubuntu 14上,第一个命令为我完成了这个任务。谢谢你,伙计!