在Linux编译的MonoDevelop 5.3时出错 [英] Error when compiling MonoDevelop 5.3 on Linux

查看:221
本文介绍了在Linux编译的MonoDevelop 5.3时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的笔记本电脑安装了Ubuntu 14.04和我想要编译的MonoDevelop 5.3的code,我从GitHub上下载的,我已经安装了所有的依赖关系。

I have installed Ubuntu 14.04 on my laptop and I'm trying to compile the code of MonoDevelop 5.3 that I downloaded from GitHub, I've installed all the dependencies.

我已经安装了单声道3.2.8:

I have installed 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我得到这样的:

When I used ./Configure I get this:

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送我这个错误:

But when I use make sends me this error:

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

如果有人知道如何解决这个错误,请让我知道了,谢谢。

If anyone knows how to fix this error, please let me know, thanks.

推荐答案

如果有编译MonoDevelop的Linux上时的NuGet错误,那么你可以通过运行的NuGet直接恢复在命令行中看到实际的错误消息。

If there is a NuGet error when compiling MonoDevelop on Linux then you can see the actual error message by running NuGet restore directly on the command line.

mono external/nuget-binary/NuGet.exe restore Main.sln

如果错误信息中包含:

Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

然后,这是最有可能的,因为 Linux的默认情况下不信任任何证书的证书错误。

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

This NuGet error can usually be fixed by running the following command:

mozroots --import --sync

如果上面不起作用看看的<一个href="http://stackoverflow.com/questions/15181888/nuget-on-linux-error-getting-response-stream">NuGet Linux上的错误获取响应流 StackOverflow的帖子里面有其他的略有不同mozroots命令,你可以试试。

If the above does not work take a look at the NuGet on Linux Error Getting Response Stream StackOverflow post which has other slightly different mozroots commands you can try.

(以上是从注释中移动可以很容易找到)

(The above was moved from the comments to make it easy to find)

这篇关于在Linux编译的MonoDevelop 5.3时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆